navibyte / geospatial

Geospatial data structures, tools and utilities for Dart and Flutter.
Other
51 stars 5 forks source link

Add visual center point calculations for polygons #237

Open navispatial opened 1 month ago

navispatial commented 1 month ago

Currently centroid and bounding box center (with alignments) are supported.

However a centroid is not always visually centered on a polygon.

There are plenty of suitable algorithms developed.

One of them is polylabel. See A new algorithm for finding a visual center of a polygon by Vladimir Agafonkin (2016).