From abfbaca8044b627d46fbbe209f7450af3ced1286 Mon Sep 17 00:00:00 2001 From: Robert Marianski Date: Mon, 2 May 2016 18:30:36 -0400 Subject: [PATCH] Don't label kind=rock|stone features --- TileStache/Goodies/VecTiles/transform.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/TileStache/Goodies/VecTiles/transform.py b/TileStache/Goodies/VecTiles/transform.py index 4aef2f87..1ac9eb07 100644 --- a/TileStache/Goodies/VecTiles/transform.py +++ b/TileStache/Goodies/VecTiles/transform.py @@ -1777,6 +1777,11 @@ def generate_label_features(ctx): sport = properties.get('sport') if not sport: continue + # if we have a sport tag but no name, we only want it + # included if it's not a rock or stone + kind = properties.get('kind') + if kind in ('rock', 'stone'): + continue label_point = shape.representative_point()