paulmach / orb

Types and utilities for working with 2d geometry in Golang
MIT License
910 stars 103 forks source link

feat(encoding/mvt): support mvt marshal for GeometryCollection #89

Closed dadadamarine closed 2 years ago

dadadamarine commented 2 years ago

support collection marshaling in mvt.

paulmach commented 2 years ago

I agree with this PR. Why not support geometry collections by encoding each geometry separately. Makes sense. The only possible issue is that it's no longer a close mapping between geojson and mvt. if you go geojson -> mvt -> geojson the collection will become individual features. Not a big deal, but FYI.

However, this has nothing to do with winding-order. Winding-order refers to the individual rings within a single polygon. That is fully supported by the existing code.

paulmach commented 2 years ago

Thank you.