Skip to content
On this page

geos.GEOSisSimple ⇒ number

Tests whether a geometry is simple. A geometry is simple if it has no points of self-tangency, self-intersection or other anomalous points.

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

ParamTypeDescription
gnumbera pointer to a GEOSGeometry object

geos.GEOSisSimple_r ⇒ number

Tests whether a geometry is simple (thread-safe version). A geometry is simple if it has no points of self-tangency, self-intersection or other anomalous points.

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

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