[][src]Function spatialite_sys::gaiaLineLocatePoint_r

pub unsafe extern "C" fn gaiaLineLocatePoint_r(
    p_cache: *const c_void,
    ln_geom: gaiaGeomCollPtr,
    pt_geom: gaiaGeomCollPtr
) -> f64

Determines the location of the closest Point on Linestring to the given Point

\param p_cache a memory pointer returned by spatialite_alloc_connection() \param ln_geom pointer to first input Geometry object [expected to be of the lineal type]. \param pt_geom pointer to second input Geometry object [expected to be a Point].

\return the fraction [in the range 0.0 / 1.0] of ln_geom total length where the closest Point to pt_geom lays.

\sa gaiaLineLocatePoint

\note reentrant and thread-safe.

\remark \b GEOS-ADVANCED support required.