tilezen / mapbox-vector-tile

Python package for encoding & decoding Mapbox Vector Tiles
MIT License
240 stars 47 forks source link

Skip inners which cause exceptions. #89

Closed zerebubuth closed 7 years ago

zerebubuth commented 7 years ago

Differencing two polygons can sometimes result in an exception, even if both input polygons are valid. This exception would be propagated and could prevent the tile from being generated. Instead, we skip any inner for which the difference was not computable, just as we already do for any inner which causes the outer to become invalid.

coveralls commented 7 years ago

Coverage Status

Coverage decreased (-0.3%) to 97.156% when pulling 671e6b0d8bf26e56f136465842ca4973b083c581 on zerebubuth/skip-inners-which-cause-exceptions into 24dc258efcd36d8993e0e863f7a4a0ee0c8099f0 on master.