Skip to content
On this page

geos.GEOSGetSRID ⇒ number

Returns the Spatial Reference System ID (SRID) of a geometry.

Kind: Exported member
Returns: number - The SRID of the geometry, or 0 if not set.

ParamTypeDescription
gnumberA pointer to a GEOSGeometry object.

geos.GEOSGetSRID_r ⇒ number

Returns the Spatial Reference System ID (SRID) of a geometry in a thread-safe manner.

Kind: Exported member
Returns: number - The SRID of the geometry, or 0 if not set.

ParamTypeDescription
handlenumberA pointer to a GEOSContextHandle_t object.
gnumberA pointer to a GEOSGeometry object.