Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't label kind=rock|stone features #151

Merged
merged 1 commit into from
May 2, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions TileStache/Goodies/VecTiles/transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down