geos.GEOSGetCentroid ⇒ number
⏏
Computes the centroid point of a geometry.
Kind: Exported member
Returns: number
- - The centroid point geometry, or null if an error occurred or the input is empty.
See: https://libgeos.org/doxygen/classgeos_1_1algorithm_1_1Centroid.html
Param | Type | Description |
---|---|---|
g | number | The geometry to use. |
geos.GEOSGetCentroid_r ⇒ number
⏏
Computes the centroid point of a geometry.
Kind: Exported member
Returns: number
- - The centroid point geometry, or null if an error occurred or the input is empty.
See: https://libgeos.org/doxygen/classgeos_1_1algorithm_1_1Centroid.html
Param | Type | Description |
---|---|---|
handle | number | A pointer to the GEOS context handle. |
g | number | The geometry to use. |