[][src]Function spatialite_sys::gaiaSnap_r

pub unsafe extern "C" fn gaiaSnap_r(
    p_cache: *const c_void,
    geom1: gaiaGeomCollPtr,
    geom2: gaiaGeomCollPtr,
    tolerance: f64
) -> gaiaGeomCollPtr

Spatial operator: Snap

\param p_cache a memory pointer returned by spatialite_alloc_connection() \param geom1 pointer to the first Geometry object. \param geom2 pointer to the second Geometry object. \param tolerance approximation factor

\return the pointer to newly created Geometry object; NULL on failure. \n the returned Geometry represents the first input Geometry (nicely \e snapped to the second input Geometry, whenever is possible).

\sa gaiaSnap, gaiaFreeGeomColl

\note you are responsible to destroy (before or after) any allocated Geometry, this including any Geometry returned by gaiaSnap_r()\n reentrant and thread-safe.

\remark \b GEOS-ADVANCED support required.