[][src]Function spatialite_sys::gaiaToCompressedBlobWkb

pub unsafe extern "C" fn gaiaToCompressedBlobWkb(
    geom: gaiaGeomCollPtr,
    result: *mut *mut c_uchar,
    size: *mut c_int
)

Creates a Compressed BLOB-Geometry corresponding to a Geometry object

\param geom pointer to the Geometry object. \param result on completion will containt a pointer to Compressed BLOB-Geometry: NULL on failure. \param size on completion this variable will contain the BLOB's size (in bytes)

\sa gaiaFromSpatiaLiteBlobWkb, gaiaToSpatiaLiteBlobWkb

\note this function will apply compression to any Linestring / Ring found within the Geometry to be encoded. \n the returned 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].