[][src]Function spatialite_sys::gaiaAddPolygonToGeomColl

pub unsafe extern "C" fn gaiaAddPolygonToGeomColl(
    p: gaiaGeomCollPtr,
    vert: c_int,
    interiors: c_int
) -> gaiaPolygonPtr

Creates a new Polygon object into a Geometry object

\param p pointer to the Geometry object. \param vert number of points [aka vertices] into the Polygon's Exterior Ring. \param interiors number of Interiors Rings [0, if no Interior Ring is required]

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

\note ownership of the newly created Polygon object belongs to the Geometry object. \n the newly created Polygon will have the same dimensions as the Geometry has.