tilezen / raw_tiles

Raw tiles
MIT License
12 stars 4 forks source link

Handle empty bounds for empty shapes. #14

Closed zerebubuth closed 6 years ago

zerebubuth commented 6 years ago

Empty geometries will return an empty tuple rather than their bounds, which causes an error in shape_tile_coverage. However, empty geometries cannot intersect any tiles, so we can just return an empty set.

zerebubuth commented 6 years ago

Fixes https://github.com/tilezen/tilequeue/issues/286.