mapbox / mapnik-vector-tile

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

geometry collections being skipped in v0.8.x #106

Closed springmeyer closed 9 years ago

springmeyer commented 9 years ago

Special handling to encode each component part of a geometry collection was added here: https://github.com/mapbox/mapnik-vector-tile/blob/887e82a1011f02ad9ef0aa756018b03e6665c81d/src/vector_tile_processor.ipp#L799-L812 to solve #98.

However rendering osm data I encountered a situation where geometry collections still hit the encoder_visitor (or maybe it was the simplify_visitor?). Either way, this is unexpected. I would expect that if this check is working then no geometry collections would ever be encountered in the visitors. Not unless boost::geometry::simplify could create collections?

Anyway, this ticket captures the reason I disabled collections hastily in https://github.com/mapbox/mapnik-vector-tile/commit/dee4e3a332e8c5ee23952439b787a02057a90ce3

The next action is:

flippmoke commented 9 years ago

A geometry collection could contain a geometry collection, therefore the logic in the check is not sufficient. I will write something to address this.

morganherlocker commented 9 years ago

I ran into this recently as well.

screenshot 2015-05-07 15 21 51

yhahn commented 9 years ago

:weary: