From 15bbea20f45aebbf2c2a659b52909769c22d7375 Mon Sep 17 00:00:00 2001 From: Robert Marianski Date: Fri, 18 Mar 2016 15:55:17 -0400 Subject: [PATCH] Drop mz_is_building property from landuse layer --- queries.yaml | 5 +++++ test/333-mz_is_building.py | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 test/333-mz_is_building.py diff --git a/queries.yaml b/queries.yaml index 03be14ef6..d7a66b6a3 100644 --- a/queries.yaml +++ b/queries.yaml @@ -311,6 +311,11 @@ post_process: start_zoom: 13 where: >- properties.get('mz_is_building') is True + - fn: TileStache.Goodies.VecTiles.transform.drop_properties + params: + source_layer: landuse + start_zoom: 13 + properties: [mz_is_building] - fn: TileStache.Goodies.VecTiles.transform.merge_duplicate_stations params: source_layer: pois diff --git a/test/333-mz_is_building.py b/test/333-mz_is_building.py new file mode 100644 index 000000000..c3b467791 --- /dev/null +++ b/test/333-mz_is_building.py @@ -0,0 +1,4 @@ +with features_in_tile_layer(16, 10470, 25342, 'landuse') as features: + for feature in features: + props = feature['properties'] + assert 'mz_is_building' not in props, 'mz_is_building detected'