-
Notifications
You must be signed in to change notification settings - Fork 1
/
shortbread.yaml
296 lines (292 loc) · 11 KB
/
shortbread.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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
metadata:
attribution: <a href="https://www.openstreetmap.org/copyright">© OpenStreetMap</a>
id: shortbread_v1
name: OpenStreetMap Shortbread
description: The Shortbread vector tile schema is intended to be a basic, lean, general-purpose vector tile schema for OpenStreetMap data. It does not, and is not intended to, cover the full breadth and depth of OpenStreetMap tagging.
version: 1.0
# For convenience the layers are listed in the same order as Shortbread documentation
vector_layers:
# Water
ocean:
description: This layer contains oceans.
sql:
- minzoom: 0
maxzoom: 13
extent: 2048
file: shortbread/ocean.sql.jinja2
- minzoom: 0
maxzoom: 14
file: shortbread/ocean.sql.jinja2
water_polygons:
description: This layer contains inland water bodies and glaciers.
fields:
kind: type of water body
way_area: &way_area Area of the feature in square meters, in the Web Mercator projection
sql:
- minzoom: 5
maxzoom: 13
extent: 2048
file: shortbread/water_polygons.sql.jinja2
- minzoom: 4
maxzoom: 14
file: shortbread/water_polygons.sql.jinja2
water_polygons_labels:
description: Holds point geometries and names for all named water polygons available in the water_polygons layer.
fields:
kind: type of water body
way_area: *way_area
name: &name Value of OSM name tag
name_en: &name_en Value of OSM name_en tag
name_de: &name_de Value of OSM name_de tag
sql:
- minzoom: 5
maxzoom: 14
file: shortbread/water_polygons_labels.sql.jinja2
water_lines:
description: Holds waterway line geometries
fields:
kind: type of waterway
tunnel: true for tunnel=yes/building_passage or covered=yes, false otherwise
bridge: true for bridge=yes/viaduct/boardwalk/cantilever/covered/low_water_crossing/movable/trestle, false otherwise
sql:
- minzoom: 9
maxzoom: 14
file: shortbread_original/water_lines.09-14.sql.jinja2
water_lines_labels:
description: Hold line geometries and names for named water lines
fields:
kind: type of waterway
name: *name
name_en: *name_en
name_de: *name_de
sql:
- minzoom: 12
maxzoom: 14
file: shortbread_original/water_lines_labels.12-14.sql.jinja2
dam_lines:
description: Holds line geometries of dams (not dykes)
fields:
kind: String
sql:
- minzoom: 14
maxzoom: 14
file: shortbread/dam_lines.sql.jinja2
dam_polygons:
description: Holds polygon geometries of dams (not dykes).
fields:
kind: String
sql:
- minzoom: 12
maxzoom: 14
file: shortbread/dam_polygons.sql.jinja2
pier_lines:
description: This layer contains piers, breakwaters and groynes mapped as lines. See the pier_polygons layer for those mapped as polygons
fields:
kind: String
sql:
- minzoom: 12
maxzoom: 14
file: shortbread_original/pier_lines.12-14.sql.jinja2
pier_polygons:
description: This layer contains piers, breakwaters and groynes mapped as polygons. See the pier_lines layer for those mapped as lines.
fields:
kind: String
sql:
- minzoom: 12
maxzoom: 14
file: shortbread_original/pier_polygons.12-14.sql.jinja2
# Countries, States, Cities
boundaries:
description: Holds boundary lines of countries and states.
fields:
admin_level: highest administrative boundary this line belongs to
maritime: Boundary line is located on sea
disputed: Boundary line is tagged as disputed
sql:
- minzoom: 2
maxzoom: 14
file: shortbread/boundaries.sql.jinja2
boundary_labels:
description: Holds label points for boundary polygons of countries and states.
fields:
admin_level: value of OSM admin_level=* tag
way_area: *way_area
name: *name
name_en: *name_en
name_de: *name_de
sql:
- minzoom: 0
maxzoom: 14
file: shortbread/boundary_labels.sql.jinja2
place_labels:
description: Holds label points for populated places.
fields:
kind: Value of OSM place tag
name: *name
name_en: *name_en
name_de: *name_de
population: Value of OSM population tag
sql:
- minzoom: 4
maxzoom: 14
file: shortbread_original/place_labels.04-14.sql.jinja2
# Land Use, Land Cover, Buildings
land:
description: This layer contains basic land cover that is usually drawn first.
fields:
kind: String
sql:
- minzoom: 7
maxzoom: 13
extent: 2048
file: shortbread/land.sql.jinja2
- minzoom: 14
maxzoom: 14
file: shortbread/land.sql.jinja2
sites:
description: This layer is for types of land use that will usually be above the basic land layer, but below buildings.
fields:
kind: String
sql:
- minzoom: 14
maxzoom: 14
file: shortbread_original/sites.14-14.sql.jinja2
buildings:
description: Has polygons for every building
sql:
- minzoom: 14
maxzoom: 14
extent: 4096
buffer: 8
file: shortbread/buildings.sql.jinja2
addresses:
description: Has points for everything with an address. If a feature is available in the pois layer, it will not be duplicated in the addresses layer.
fields:
housename: Housename of feature
housenumber: Housenumber of feature
sql:
- minzoom: 14
maxzoom: 14
file: shortbread_original/addresses.14-14.sql.jinja2
# Streets and Transport
streets:
description: Holds line geometries of the whole road network
fields:
kind: Feature class, contains value of highway=*, aeroway=* or railway=*
link: true for link roads
rail: true for railways, false otherwise
tunnel: true for tunnel=yes/building_passage or covered=yes, false otherwise
bridge: true for bridge=yes/viaduct/boardwalk/cantilever/covered/low_water_crossing/movable/trestle, false otherwise
oneway: true for oneway=yes/1/true/-1; always false for rail features
oneway_reverse: true for reverse (not reversible) oneways (oneway=-1); always false for rail features
tracktype: value of tracktype=*
surface: value of surface=*
service: value of service=*
bicycle: value of bicycle=*
horse: value of horse=*
sql:
- minzoom: 5
maxzoom: 13
extent: 2048
buffer: 16
file: shortbread/streets.sql.jinja2
- minzoom: 14
maxzoom: 14
extent: 4096
buffer: 64 # Needs to be wide to include aeroways. TODO: Vary this by feature type?
file: shortbread/streets.sql.jinja2
street_polygons:
description: Holds polygons geometries of certain streets mapped as polygons
fields:
kind: Feature class, contains value of highway=* or area:aeroway=*
tunnel: true for tunnel=yes/building_passage or covered=yes, false otherwise
bridge: true for bridge=yes/viaduct/boardwalk/cantilever/covered/low_water_crossing/movable/trestle, false otherwise
surface: value of surface tag
sql:
- minzoom: 11
maxzoom: 14
file: shortbread_original/street_polygons.11-14.sql.jinja2
street_labels:
description: This layer holds street geometries for labelling. It contains their names and reference numbers
fields:
kind: value of OSM highway=*, aeroway=* or taxiway=* tag
ref: value of OSM ref=* tag, semicolons replaced by newline characters
ref_rows: number of lines of the ref field
ref_cols: maximum line length of the ref field
name: *name
name_en: *name_en
name_de: *name_de
sql:
- minzoom: 10
maxzoom: 14
file: shortbread/street_labels.sql.jinja2
# TODO: streets_polygons_labels
streets_polygons_labels:
description: Holds labelling points of the polygons of the streets_polygons layer
fields:
kind: value of OSM highway=*, aeroway=* or taxiway=* tag
name: *name
name_en: *name_en
name_de: *name_de
sql:
- minzoom: 14
maxzoom: 14
file: shortbread/streets_polygons_labels.sql.jinja2
streets_labels_points:
description: This layer holds motorway exit labels
fields:
kind: value of OSM highway=* or aeroway=* tag
ref: Reference number of the exit
name: *name
name_en: *name_en
name_de: *name_de
sql:
- minzoom: 12
maxzoom: 14
file: shortbread_original/streets_labels_points.12-14.sql.jinja2
bridges:
description: This layer contains bridges mapped as polygons. There is no distinction which type of road, railway, runway or waterway uses this bridge.
fields:
kind: String
sql:
- minzoom: 12
maxzoom: 14
file: shortbread_original/bridges.12-14.sql.jinja2
aerialways:
description: Holds aerialways as lines.
fields:
kind: String
sql:
- minzoom: 12
maxzoom: 14
file: shortbread_original/aerialways.12-14.sql.jinja2
ferries:
description: Holds line geometries of ferries.
fields:
kind: String
name: *name
name_en: *name_en
name_de: *name_de
sql:
- minzoom: 10
maxzoom: 14
file: shortbread_original/ferries.10-14.sql.jinja2
# Points of interest
public_transport:
description: Holds public transport stops as points. Areas in OSM are represented by a point.
fields:
kind: String
name: *name
name_en: *name_en
name_de: *name_de
sql:
- minzoom: 11
maxzoom: 14
file: shortbread_original/public_transport.11-14.sql.jinja2
pois:
description: Holds public transport stops as points. Areas in OSM are represented by a point.
fields:
sql:
- minzoom: 14
maxzoom: 14
file: shortbread_original/pois.14-14.sql.jinja2