wfletcher / EasyGIS.NET

EasyGIS.NET source
GNU Lesser General Public License v3.0
66 stars 23 forks source link

Polygon Centroid #99

Open dusko23 opened 1 year ago

dusko23 commented 1 year ago

For Search and Rescue, is a good practice to have the centroid of a polygon somewhere inside the polygon to represent a position of a polygon label. It appears that the library defines a center as the center of the boundary rectangle.

image Is there any chance to introduce another RendederSettings property as PointD where a label of a polygon is centered? Ideally with CenterCenter alignment. If PointD is defined label is centered there otherwise boundary rectangle center is used.