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
Param | Type | Description |
---|---|---|
g | number | a 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
Param | Type | Description |
---|---|---|
handle | number | a pointer to a GEOS context handle |
g | number | a pointer to a GEOSGeometry object |