Function gaiaIsNotClosedRing_r

Source
pub unsafe extern "C" fn gaiaIsNotClosedRing_r(
    p_data: *const c_void,
    ring: gaiaRingPtr,
) -> c_int
Expand description

Checks for not-closed Rings

\param p_cache a memory pointer returned by spatialite_alloc_connection() \param ring pointer to Ring object

\return 0 if the Ring in unclosed: otherwise any other different value.

\sa gaiaIsNotClosedRing, gaiaIsToxic, gaiaIsNotClosedGeomColl

\note unclosed Rings cause GEOS supported functions to crash. \n SpatiaLite will always carefully check any Ring before passing it to GEOS, eventually silently inserting a further point required so to properly close the figure. \n This function allows to explicitly identify any unclosed Ring.\n reentrant and thread-safe.