Skip to content

geos.GEOSisSimple ⇒ number

Tests whether the input geometry is "simple". Mostly relevant for linestrings. A "simple" linestring has no self-intersections.

Kind: global property of geos
Returns: number - 1 on true, 0 on false, 2 on exception

ParamTypeDescription
gGEOSGeometryThe geometry to test

geos.GEOSisSimple_r ⇒ number

Tests whether the input geometry is "simple". Mostly relevant for linestrings. A "simple" linestring has no self-intersections.

Kind: global property of geos
Returns: number - 1 on true, 0 on false, 2 on exception

ParamTypeDescription
handleGEOSContextHandle_t-
gGEOSGeometryThe geometry to test