Skip to content
On this page

geos.GEOSisClosed ⇒ number

Tests whether the input geometry is closed. A closed geometry is a linestring or multilinestring with the start and end points being the same. Returns 1 if the geometry is closed, 0 otherwise.

Kind: Exported member
Returns: number - 1 or 0, or -1 on exception.
See: https://libgeos.org/doxygen/geos__c_8h.html#a5d3f7f2e7d5e7b2c3d9a3c9f2e8a6b4b

ParamTypeDescription
geomnumberA pointer to a GEOSGeometry object.

geos.GEOSisClosed_r ⇒ number

Tests whether the input geometry is closed. A closed geometry is a linestring or multilinestring with the start and end points being the same. Returns 1 if the geometry is closed, 0 otherwise.

Kind: Exported member
Returns: number - 1 or 0, or -1 on exception.
See: https://libgeos.org/doxygen/geos__c_8h.html#a5d3f7f2e7d5e7b2c3d9a3c9f2e8a6b4b

ParamTypeDescription
handlenumberA GEOS context handle.
geomnumberA pointer to a GEOSGeometry object.