Skip to content

geos.GEOSSnap ⇒ GEOSGeometry

Snaps the vertices and segments of the first geometry to vertices of the second geometry within the given tolerance.

Kind: global property of geos
Returns: GEOSGeometry - The snapped version of the input. NULL on exception. Caller is responsible for freeing with GEOSGeom_destroy().

ParamTypeDescription
inputGEOSGeometryAn input geometry
snap_targetGEOSGeometryA geometry to snap the input to
tolerancenumberSnapping tolerance

geos.GEOSSnap_r ⇒ GEOSGeometry

Snaps the vertices and segments of the first geometry to vertices of the second geometry within the given tolerance.

Kind: global property of geos
Returns: GEOSGeometry - The snapped version of the input. NULL on exception. Caller is responsible for freeing with GEOSGeom_destroy().

ParamTypeDescription
handleGEOSContextHandle_t-
g1GEOSGeometryAn input geometry
g2GEOSGeometryA geometry to snap the input to
tolerancenumberSnapping tolerance