MobilityDB 1.3
Loading...
Searching...
No Matches

◆ geography_centroid_from_mpoly()

LWPOINT * geography_centroid_from_mpoly ( const LWMPOLY mpoly,
bool  use_spheroid,
SPHEROID s 
)

Split polygons into triangles and use centroid of the triangle with the triangle area as weight to calculate the centroid of a (multi)polygon.