Skip to content

Commit 77e663c

Browse files
authored
Address PR comments
1 parent f5dafd3 commit 77e663c

File tree

1 file changed

+19
-8
lines changed

1 file changed

+19
-8
lines changed

queries.yaml

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -808,13 +808,24 @@ post_process:
808808
- name
809809
where: >-
810810
(kind == 'sea' and zoom < 4) or
811+
(kind == 'bay' and zoom < 5) or
812+
(kind == 'fjord' and zoom < 5) or
813+
(kind == 'strait' and zoom < 5) or
811814
(kind == 'lake' and zoom < 5) or
815+
(kind == 'playa' and zoom < 6) or
816+
(kind == 'reef' and zoom < 6) or
812817
(kind == 'river' and zoom < 12) or
818+
(kind == 'riverbank' and zoom < 12) or
819+
(kind == 'water' and zoom < 12) or
813820
(kind == 'canal' and zoom < 13) or
821+
(kind == 'basin' and zoom < 13) or
822+
(kind == 'dock' and zoom < 13) or
814823
(kind == 'dam' and zoom < 14) or
815824
(kind == 'stream' and zoom < 14) or
816825
(kind == 'ditch' and zoom < 15) or
817826
(kind == 'drain' and zoom < 15) or
827+
(kind == 'swimming_pool' and zoom < 15) or
828+
(kind == 'fountain' and zoom < 15) or
818829
(properties is not None and properties.get('is_tunnel') is True)
819830
820831
- fn: vectordatasource.transform.handle_label_placement
@@ -863,40 +874,40 @@ post_process:
863874
(16, None),
864875
] if area >= area_threshold][0]
865876
where: >-
866-
kind in ['lake','bay','water','riverbank','reservoir'] and label_placement
877+
(properties is not None and properties.get('label_placement') is True)
867878
868879
# now that we have the label points
869880
# drop most water properties at lower zooms
870881
# this is for lines and polygons
871882
- fn: vectordatasource.transform.drop_properties
872883
params:
873884
source_layer: water
874-
start_zoom: 8
885+
start_zoom: 0
875886
end_zoom: 15
887+
geom_types: [LineString, MultiLineString, Polygon, MultiPolygon]
876888
properties:
877889
- id
878890
- area
891+
- boundary
879892
- layer
880893
- wikidata_id
894+
- osm_relation
881895
- kind_tile_rank
882-
- label_placement
883-
where: >-
884-
geom_type in ('LineString', 'MultiLineString', 'Polygon', 'MultiPolygon')
885896

886897
# now that we have the label points
887898
# drop water names at lower zooms for polys only
888899
- fn: vectordatasource.transform.drop_properties
889900
params:
890901
source_layer: water
891-
start_zoom: 8
902+
start_zoom: 0
892903
end_zoom: 15
904+
geom_types: [Polygon, MultiPolygon]
893905
# short-hand for "name" property in the list below means all name-like
894906
# properties.
895907
all_name_variants: true
896908
properties:
897909
- name
898-
where: >-
899-
geom_type in ('Polygon', 'MultiPolygon')
910+
- old_name
900911

901912
- fn: vectordatasource.transform.handle_label_placement
902913
params:

0 commit comments

Comments
 (0)