[][src]Function spatialite_sys::gaiaMakeLine

pub unsafe extern "C" fn gaiaMakeLine(
    geom1: gaiaGeomCollPtr,
    geom2: gaiaGeomCollPtr,
    result: *mut *mut c_uchar,
    size: *mut c_int
)

Creates a BLOB-Geometry representing a Segment (2-Points Linestring)

\param geom1 pointer to first Geometry object (expected to represent a Point). \param geom2 pointer to second Geometry object (expected to represent a Point). \param result on completion will containt a pointer to BLOB-Geometry: NULL on failure. \param size on completion this variable will contain the BLOB's size (in bytes)

\sa gaiaFromSpatiaLiteBlobWkb

\note the BLOB buffer corresponds to dynamically allocated memory: so you are responsible to free() it [unless SQLite will take care of memory cleanup via buffer binding].