Skip to content
On this page

geos.GEOSisRing ⇒ number

Tests whether a geometry is a ring. A ring is a closed and simple linestring.

Kind: Exported member
Returns: number - 1 if the geometry is a ring, 0 if not, or -1 on error

ParamTypeDescription
gnumbera pointer to a GEOSGeometry object

geos.GEOSisRing_r ⇒ number

Tests whether a geometry is a ring (thread-safe version). A ring is a closed and simple linestring.

Kind: Exported member
Returns: number - 1 if the geometry is a ring, 0 if not, or -1 on error

ParamTypeDescription
handlenumbera pointer to a GEOS context handle
gnumbera pointer to a GEOSGeometry object