pygeoops.create_grid#

pygeoops.create_grid(total_bounds: tuple[float, float, float, float], nb_columns: int, nb_rows: int) ndarray[Any, dtype[Polygon]]#

Creates a grid with tiles of the width and height specified.

Parameters:
  • total_bounds (Tuple[float, float, float, float]) – bounds of the grid to be created.

  • nb_columns (int) – number of columns the grid should have.

  • nb_rows (int) – number of rows the grid should have.

Returns:

ndarray with tiles.

Return type:

NDArray[Polygon]