phpgeo
phpgeo copied to clipboard
[FEATURE] Compute center of a polygon
It would be nice to have a method in the Polygon
class, which computes and returns the center of all coordinates.
Is this something you would be interested in? See http://tutorialspots.com/php-how-to-determine-the-center-of-a-polygon-637.html
ping @mjaschen :)
Hi,
that'd be a nice addition. The referenced algorithms are for planar polygons only. We have to find something that works on the surface of an ellipsoid. Lets see if we find the time for research and implementation :-)
WDYT about this one, @mjaschen? https://bell0bytes.eu/centroid-convex/