Function gaiaHexagonalGrid

Source
pub unsafe extern "C" fn gaiaHexagonalGrid(
    geom: gaiaGeomCollPtr,
    origin_x: f64,
    origin_y: f64,
    size: f64,
    only_edges: c_int,
) -> gaiaGeomCollPtr
Expand description

Utility function: HexagonalGrid

\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 hexagonal 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 gaiaGexagonalGrid_r, gaiaFreeGeomColl, gaiaSquareGrid, gaiaTriangularGrid

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