Skip to content
On this page

geos.GEOSGetNumInteriorRings ⇒ number

Returns the number of interior rings in the polygon.

Kind: Exported member
Returns: number - The number of interior rings in the polygon, or -1 on exception.

ParamTypeDescription
gnumberA pointer to a GEOSGeometry object of type Polygon.

geos.GEOSGetNumInteriorRings_r ⇒ number

Returns the number of interior rings in the polygon (thread-safe version).

Kind: Exported member
Returns: number - The number of interior rings in the polygon, or -1 on exception.

ParamTypeDescription
handlenumberA GEOS context handle created with initGEOS_r().
gnumberA pointer to a GEOSGeometry object of type Polygon.