tilemaker icon indicating copy to clipboard operation
tilemaker copied to clipboard

Point on surface instead of centroid

Open Nakaner opened this issue 4 years ago • 2 comments

For labeling countries, point on surface is a better approach to get a labeling point than centroids because centroids can be located outside the polygon, e.g. France being labeled in the Bay of Biscay.

Nakaner avatar Mar 07 '22 16:03 Nakaner

Good thinking. It looks like Boost.Geometry does have a point_on_surface implementation as well.

systemed avatar Mar 07 '22 19:03 systemed

https://github.com/mapbox/polylabel

freeExec avatar Mar 09 '22 12:03 freeExec