[][src]Function spatialite_sys::gaiaLinearize

pub unsafe extern "C" fn gaiaLinearize(
    geom: gaiaGeomCollPtr,
    force_multi: c_int
) -> gaiaGeomCollPtr

Attempts to resolve a (Multi)Linestring from a Geometry object

\param geom pointer to Geometry object. \param force_multi: 0 if the returned Geometry could represent a Linestring: any other value if casting to MultiLinestring is required unconditionally.

\return the pointer to newly created Geometry: NULL on failure.

\sa gaiaDissolveSegments, gaiaDissolvePoints

\note you are responsible to destroy (before or after) any allocated Geometry, this including any Geometry created by gaiaLinearize() \n the input Geometry is expected to contain Polygons only: then any Ring will be transformed into the corresponding Linestring.