Skip to content

geos.GEOSGetCentroid ⇒ GEOSGeometry

Returns a point at the center of mass of the input.

Kind: global property of geos
Returns: GEOSGeometry - A point at the center of mass of the input Caller is responsible for freeing with GEOSGeom_destroy().

ParamTypeDescription
gGEOSGeometryThe input geometry

geos.GEOSGetCentroid_r ⇒ GEOSGeometry

Returns a point at the center of mass of the input.

Kind: global property of geos
Returns: GEOSGeometry - A point at the center of mass of the input Caller is responsible for freeing with GEOSGeom_destroy().

ParamTypeDescription
handleGEOSContextHandle_t-
gGEOSGeometryThe input geometry