Skip to content
On this page

geos.GEOSGetInteriorRingN ⇒ number

Returns the Nth interior ring of a polygon geometry. Note: Returned object is a pointer to internal storage: it must NOT be destroyed directly.

Kind: Exported member
Returns: number - - The interior ring geometry, or null if an error occurred or the index is out of range.
See: https://libgeos.org/doxygen/geos__c_8h.html

ParamTypeDescription
gnumberThe polygon geometry.
nnumberThe index of the interior ring, starting from 0.

geos.GEOSGetInteriorRingN_r ⇒ number

Returns the Nth interior ring of a polygon geometry.

Kind: Exported member
Returns: number - - The interior ring geometry, or null if an error occurred or the index is out of range.
See: https://libgeos.org/doxygen/geos__c_8h_source.html

ParamTypeDescription
handlenumberA pointer to the GEOS context handle.
gnumberThe polygon geometry.
nnumberThe index of the interior ring, starting from 0.