Skip to content

geos.GEOSisRing ⇒ number

Tests whether the input geometry is a ring. Rings are linestrings, without self-intersections, with start and end point being identical.

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

ParamTypeDescription
gGEOSGeometryThe geometry to test

geos.GEOSisRing_r ⇒ number

Tests whether the input geometry is a ring. Rings are linestrings, without self-intersections, with start and end point being identical.

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

ParamTypeDescription
handleGEOSContextHandle_t-
gGEOSGeometryThe geometry to test