Skip to content
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
16 changes: 16 additions & 0 deletions TileStache/Goodies/VecTiles/transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,15 @@ def boundary_kind(shape, properties, fid, zoom):
kind = properties.get('kind')
if kind:
return shape, properties, fid

# if the boundary is tagged as being that of a first nations
# state then skip the rest of the kind logic, regardless of
# the admin_level (see mapzen/vector-datasource#284).
boundary_type = properties.get('boundary_type')
if boundary_type == 'aboriginal_lands':
properties['kind'] = 'aboriginal_lands'
return shape, properties, fid

admin_level_str = properties.get('admin_level')
if admin_level_str is None:
return shape, properties, fid
Expand All @@ -381,6 +390,13 @@ def boundary_kind(shape, properties, fid, zoom):
return shape, properties, fid


def boundary_trim_properties(shape, properties, fid, zoom):
properties = _remove_properties(
properties,
'boundary_type')
return shape, properties, fid


def tags_create_dict(shape, properties, fid, zoom):
tags_hstore = properties.get('tags')
if tags_hstore:
Expand Down