Function gaiaShortestLine_r

Source
pub unsafe extern "C" fn gaiaShortestLine_r(
    p_cache: *const c_void,
    geom1: gaiaGeomCollPtr,
    geom2: gaiaGeomCollPtr,
) -> gaiaGeomCollPtr
Expand description

Spatial operator: Shortest Line

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

\return the pointer to newly created Geometry object representing a Linestring; NULL on failure. \n the returned Linestring graphically represents the minimum distance intercurrinng between both input geometries.

\sa gaiaShortestLine, gaiaFreeGeomColl

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

\remark \b GEOS-ADVANCED support required.