[−][src]Function spatialite_sys::gaiaSquareGrid
pub unsafe extern "C" fn gaiaSquareGrid(
geom: gaiaGeomCollPtr,
origin_x: f64,
origin_y: f64,
size: f64,
only_edges: c_int
) -> gaiaGeomCollPtr
Utility function: SquareGrid
\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 square 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 gaiaSquareGrid_r, gaiaFreeGeomColl, gaiaTriangularGrid, gaiaHexagonalGrid
\note you are responsible to destroy (before or after) any allocated Geometry, this including any Geometry returned by gaiaSquareGrid()\n not reentrant and thread unsafe.