Function gaiaPolygonize

Source
pub unsafe extern "C" fn gaiaPolygonize(
    geom: gaiaGeomCollPtr,
    force_multi: c_int,
) -> gaiaGeomCollPtr
Expand description

Attempts to rearrange a generic Geometry object into a Polygon or MultiPolygon

\param geom the input Geometry object \param force_multi if not set to 0, then an eventual Polygon will be returned casted to MultiPolygon

\return the pointer to newly created Geometry object representing a Polygon or MultiPolygon Geometry: NULL on failure.

\sa gaiaPolygonize_r, gaiaMakePolygon, gaiaFreeGeomColl

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

\remark \b GEOS support required.