Skip to content
On this page

geos.GEOSGetExteriorRing ⇒ number

Returns the exterior ring of a polygon geometry as a linear ring.

Kind: Exported member
Returns: number - A pointer to a newly allocated GEOSGeometry object of type LinearRing, or NULL on exception. The caller is responsible for destroying it with GEOSGeom_destroy().

ParamTypeDescription
gnumberA pointer to a GEOSGeometry object of type Polygon.

geos.GEOSGetExteriorRing_r ⇒ number

Returns the exterior ring of a polygon geometry.

Kind: Exported member
Returns: number - - The exterior ring geometry, or null if an error occurred.
See: https://libgeos.org/doxygen/geos__c_8h_source.html

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