Function gaiaMakeValidDiscarded

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

Utility function: MakeValidDiscarded

\param geom the input Geometry object.

\return the pointer to newly created Geometry object: NULL on failure. \n this function will attempt to collect any invalid item (offending geometries) discarded by gaiaMakeValid while building a valid Geometry. \n Saving any discarded item could be useful for a finer (manual) adjustment. \n NULL will be returned if gaiaMakeValid hasn’t identified any offending item to be discarded during the validation.

\sa gaiaFreeGeomColl, gaiaMakeValid

\note you are responsible to destroy (before or after) any allocated Geometry, this including any Geometry returned by gaiaMakeValidDiscarded()

\remark \b LWGEOM support required.