Skip to content

geos.GEOSContains ⇒ number

Tests if geometry g2 is completely within g1, but not wholly contained in the boundary of g1.

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

ParamTypeDescription
g1GEOSGeometryInput geometry
g2GEOSGeometryInput geometry

geos.GEOSContains_r ⇒ number

Tests if geometry g2 is completely within g1, but not wholly contained in the boundary of g1.

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

ParamTypeDescription
handleGEOSContextHandle_t-
g1GEOSGeometryInput geometry
g2GEOSGeometryInput geometry