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().
Param | Type | Description |
---|---|---|
input | GEOSGeometry | An input geometry |
snap_target | GEOSGeometry | A geometry to snap the input to |
tolerance | number | Snapping 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().
Param | Type | Description |
---|---|---|
handle | GEOSContextHandle_t | - |
g1 | GEOSGeometry | An input geometry |
g2 | GEOSGeometry | A geometry to snap the input to |
tolerance | number | Snapping tolerance |