[−][src]Function spatialite_sys::gaiaIsToxic_r
pub unsafe extern "C" fn gaiaIsToxic_r(
p_cache: *const c_void,
geom: gaiaGeomCollPtr
) -> c_int
Checks for toxic Geometry object
\param p_cache a memory pointer returned by spatialite_alloc_connection() \param geom pointer to Geometry object
\return 0 if the Geometry is not toxic: otherwise any other different value.
\sa gaiaIsToxic, gaiaSanitize
\note a \b toxic Geometry is a Geometry containing severely malformed Polygons: i.e. containing less than 4 Points. \n Or containing severely malformed Linestrings: i.e. containing less than 2 Points. \n Attempting to pass any toxic Geometry to GEOS supported functions will easily cause a crash.\n reentrant and thread-safe.