Skip to content

Commit 67aa978

Browse files
committed
Use NE-provided min zooms. Clip OSM zoom range to 7.
1 parent db0890d commit 67aa978

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

yaml/water.yaml

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,8 @@ globals:
2323
key: { col: way_area }
2424
op: '>='
2525
table:
26-
# limit show smaller landuse areas to higher zooms
27-
- [ 0, 40000000000 ]
28-
- [ 2, 20000000000 ]
29-
# some weird natural earth scale set transition
30-
- [ 3, 80000000000 ]
31-
- [ 4, 5000000000 ]
32-
- [ 5, 700000000 ]
33-
- [ 6, 500000000 ]
26+
# OSM data starts at z8, but we should include some stuff at z7 so that
27+
# the transition doesn't have a gap in it.
3428
- [ 7, 160000000 ]
3529
- [ 8, 20000000 ]
3630
- [ 9, 5000000 ]
@@ -153,44 +147,52 @@ filters:
153147
- when: { reef: [coral, rock, sand] }
154148
then: { col: reef }
155149
table: osm
150+
151+
#
152+
# NE features
153+
#
156154
- filter: {featurecla: Coastline}
157155
min_zoom: 0
158156
output:
159157
<<: *output_properties
160158
kind: ocean
161159
table: ne
162160
- filter: {featurecla: Alkaline Lake}
163-
min_zoom: *water_polygon_min_zoom
161+
min_zoom: { col: min_zoom }
164162
output:
165163
<<: *output_properties
166164
kind: lake
167165
alkaline: true
168166
table: ne
169167
- filter: {featurecla: Lake}
170-
min_zoom: *water_polygon_min_zoom
168+
min_zoom: { col: min_zoom }
171169
output:
172170
<<: *output_properties
173171
kind: lake
174172
table: ne
175173
- filter: {featurecla: Reservoir}
176-
min_zoom: *water_polygon_min_zoom
174+
min_zoom: { col: min_zoom }
177175
output:
178176
<<: *output_properties
179177
kind: lake
180178
reservoir: true
181179
table: ne
182180
- filter: {featurecla: Playa}
183-
min_zoom: *water_polygon_min_zoom
181+
min_zoom: { col: min_zoom }
184182
output:
185183
<<: *output_properties
186184
kind: playa
187185
table: ne
188186
- filter: {featurecla: Ocean}
189-
min_zoom: *water_polygon_min_zoom
187+
min_zoom: { col: min_zoom }
190188
output:
191189
<<: *output_properties
192190
kind: ocean
193191
table: ne
192+
193+
#
194+
# OSM water place points (ocean, sea labels)
195+
#
194196
- filter: {name: true, place: ocean}
195197
min_zoom: *water_polygon_min_zoom
196198
output:

0 commit comments

Comments
 (0)