[][src]Function spatialite_sys::gaiaInsertPolygonInGeomColl

pub unsafe extern "C" fn gaiaInsertPolygonInGeomColl(
    p: gaiaGeomCollPtr,
    ring: gaiaRingPtr
) -> gaiaPolygonPtr

Creates a new Polygon object into a Geometry object starting from an already existing Ring object

\param p pointer to the Geometry object. \param ring pointer to the Ring object [assumed to represent to Polygon's Exterior Ring].

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

\note ownership of the Ring object will be transferred to the Polygon object, and the Polygon object ownerships belongs to the Geometry object. \n the Polygon object will have the same dimensions as the Ring object has.