[][src]Function spatialite_sys::gaiaTriangularGrid_r

pub unsafe extern "C" fn gaiaTriangularGrid_r(
    p_cache: *const c_void,
    geom: gaiaGeomCollPtr,
    origin_x: f64,
    origin_y: f64,
    size: f64,
    only_edges: c_int
) -> gaiaGeomCollPtr

Utility function: TriangularGrid

\param p_cache a memory pointer returned by spatialite_alloc_connection() \param geom the Geometry to be covered by the Grid. \param origin_x the X ccordinate identifying the Grid Origin. \param origin_y the Y coordinate identifiying the Grid Origin. \param size the Grid cell-side size. \param only_edges if non-zero will return a MULTILINESTRING, otherwise it will return a MULTIPOLYGON containing triangular POLYGONs.

\return the pointer to newly created Geometry object: NULL on failure. \n this function will always return a MultiPolygon \n NULL will be returned if any argument is invalid.

\sa gaiaTriangularGrid, gaiaFreeGeomColl, gaiaSquareGrid, gaiaHexagonalGrid

\note you are responsible to destroy (before or after) any allocated Geometry, this including any Geometry returned by gaiaTriangularGrid_r()\n reentrant and thread-safe.