Function gaiaLineLocatePoint

Source
pub unsafe extern "C" fn gaiaLineLocatePoint(
    ln_geom: gaiaGeomCollPtr,
    pt_geom: gaiaGeomCollPtr,
) -> f64
Expand description

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

\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_r

\note not reentrant and thread unsafe.

\remark \b GEOS-ADVANCED support required.