-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmapping.yaml
174 lines (168 loc) · 3.14 KB
/
mapping.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
---
areas:
area_tags:
- landuse
- admin
linear_tags:
- highway
tables:
admin_members:
type: relation_member
columns:
- name: osm_id
type: id
- name: member_id
type: member_id
- name: member_type
type: member_type
- name: geometry
type: geometry
relation_types:
- boundary
# sql_filter: member_type = ...
mapping:
boundary:
- administrative
places:
columns:
- name: osm_id
type: id
- name: geometry
type: geometry
- name: name
type: string
key: name
- name: name_sk
type: string
key: name:sk
- name: type
type: mapping_value
- name: z_order
type: enumerate
args:
values:
- village
- town
- city
- county
- region
- state
- country
- name: population
type: integer
key: population
- name: capital
type: string
key: capital
type: point
mapping:
place:
- country
- state
- region
- county
- city
- town
- village
admin:
columns:
- name: osm_id
type: id
- name: geometry
type: geometry
- name: name
type: string
key: name
- name: name_sk
type: string
key: name:sk
- name: admin_level
type: integer
key: admin_level
- name: country_code
type: string
key: ISO3166-1:alpha2
type: polygon
# sql_filter: admin_level < 9
mapping:
boundary:
- administrative
waterways:
columns:
- name: osm_id
type: id
- name: geometry
type: geometry
type: linestring
mapping:
waterway:
- river
- canal
roads:
columns:
- name: osm_id
type: id
- name: geometry
type: geometry
- name: type
type: mapping_value
type: linestring
mapping:
# railway:
# - rail
highway:
- motorway
- motorway_link
- trunk
- trunk_link
- primary
- primary_link
- secondary
- secondary_link
landcover:
columns:
- name: osm_id
type: id
- name: geometry
type: geometry
- name: type
type: mapping_value
type: polygon
mapping:
natural:
# - bare_rock
# - beach
# - fell
# - grassland
# - heath
# - moor
# - sand
# - scree
- scrub
- water
# - wetland
- wood
landuse:
# - allotments
- basin
# - brownfield
- cemetery
- commercial
- depot
# - farm
# - farmland
# - farmyard
- forest
# - grass
# - greenfield
- industrial
# - landfill
# - meadow
# - orchard
- quarry
- reservoir
- residential
- retail
# - village_green
- vineyard
- wood