tilezen/mapbox-vector-tile

Handle invalid geometries

rmarianski opened this issue · 3 comments

After quantizing and encoding mvt tiles, we can end up in situations where we generate invalid geometries. The encoder should allow for the flexibility to handle these in different ways, eg drop invalid geometries, try to correct the geometry and try again, raise an exception, etc. Offering a callback might be a general way to approach the implementation.

Related to #42

@rmarianski Anything more to test with this one before taking it to prod?

Good to go.