[][src]Function spatialite_sys::gaiaSanitize

pub unsafe extern "C" fn gaiaSanitize(org: gaiaGeomCollPtr) -> gaiaGeomCollPtr

Attempts to sanitize a possibly malformed Geometry object

\param org pointer to Geometry object.

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

\sa gaiaIsToxic

\note you are responsible to destroy (before or after) any allocated Geometry, this including any Geometry created by gaiaSanitize() \n the output Geometry will surely have: \li no repeated Points on Linestrings or Rings (i.e. consecutive Points sharing exactly the same coordinates): any repeated Point will be suppressed, simply leaving only the first occurrence. \li proper Ring closure: for sure any Ring will have exactly coinciding first and last Points.