Skip to content
On this page

geos.GEOSGetNumCoordinates ⇒ number

Returns the number of coordinates in a GEOS geometry object.

Kind: Exported member
Returns: number - The number of coordinates, or -1 on exception.
See: https://libgeos.org/doxygen/geos__c_8h.html#a7b4e0c2f9d3f1a6d4b9a9c1d5e0f3a2e

ParamTypeDescription
gnumberThe GEOS geometry object.

geos.GEOSGetNumCoordinates_r ⇒ number

Returns the number of coordinates in a GEOS geometry object (thread-safe version).

Kind: Exported member
Returns: number - The number of coordinates, or -1 on exception.
See: https://libgeos.org/doxygen/geos__c_8h.html#a7b4e0c2f9d3f1a6d4b9a9c1d5e0f3a2e

ParamTypeDescription
handlenumberA pointer to the GEOS context handle.
gnumberThe GEOS geometry object.