Skip to content
On this page

geos.GEOSSnap ⇒ number

Snaps two geometries together with a given tolerance.

Kind: Exported member
Returns: number - A pointer to a new snapped geometry, or NULL on exception.
See: https://libgeos.org/doxygen/geos__c_8h.html

ParamTypeDescription
handlenumberA pointer to the GEOS context handle.
g1numberA pointer to the first geometry to snap.
g2numberA pointer to the second geometry to snap.
tolerancenumberThe snapping tolerance to use, in same units as input geometries.

geos.GEOSSnap_r ⇒ number

Snaps two geometries together with a given tolerance using a GEOS context handle.

Kind: Exported member
Returns: number - A pointer to a new snapped geometry, or NULL on exception.
See: https://libgeos.org/doxygen/geos__c_8h.html

ParamTypeDescription
handlenumberA pointer to the GEOS context handle.
g1numberA pointer to the first geometry to snap.
g2numberA pointer to the second geometry to snap.
tolerancenumberThe snapping tolerance to use, in same units as input geometries.