mapbox / mapnik-vector-tile

Mapnik implemention of Mapbox Vector Tile specification
BSD 3-Clause "New" or "Revised" License
553 stars 117 forks source link

Handle invalid geometries in layer encoding #189

Closed jakepruitt closed 8 years ago

jakepruitt commented 8 years ago

Prevent the segfaults that occur when invalid geometries are passed to the layer encoder by rolling back any written geometries, rather than rolling back the entire layer writer.

Note, with this fix, the keys and values added by the invalid feature will stay in the layer, which I think is acceptable for the edge case situation.

cc/ @springmeyer @flippmoke