You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling ClipperLib::CleanPolygon may discard tiny polygons at low zooms. This is generally desirable if your priority is reducing vtile sizes. But this may not be desirable in certain situations.
Take for instance: making maps at low zoom levels of polynesian islands.
Here is an example of a MarkersSymbolizer on each polygon when rendering shp->png directly (no vector tile encoding):
However when rendered to a vtile and back to an image we loose many of the small islands:
After disabling CleanPolygon we regain most of the small islands:
NOTE: area_threshold in these tests was set to 0.0 so the islands are not being thrown away due to that parameter.
One potential solution - for cartographic or other use cases where loosing small polygons is not okay -would be to offer a mode where polygons are collapsed to points rather than thrown away. But in the short term I think the best solution is to provide an option to disable cleaning polygons.
The text was updated successfully, but these errors were encountered:
Calling
ClipperLib::CleanPolygon
may discard tiny polygons at low zooms. This is generally desirable if your priority is reducing vtile sizes. But this may not be desirable in certain situations.Take for instance: making maps at low zoom levels of polynesian islands.
Here is an example of a
MarkersSymbolizer
on each polygon when rendering shp->png directly (no vector tile encoding):However when rendered to a vtile and back to an image we loose many of the small islands:
After disabling
CleanPolygon
we regain most of the small islands:NOTE:
area_threshold
in these tests was set to0.0
so the islands are not being thrown away due to that parameter.One potential solution - for cartographic or other use cases where loosing small polygons is not okay -would be to offer a mode where polygons are collapsed to points rather than thrown away. But in the short term I think the best solution is to provide an option to disable cleaning polygons.
The text was updated successfully, but these errors were encountered: