pygeoops.create_grid2#

pygeoops.create_grid2(total_bounds: tuple[float, float, float, float], nb_squarish_tiles: int, nb_squarish_tiles_max: int | None = None) ndarray[tuple[Any, ...], dtype[Polygon]]#

Creates a grid with about the indicated number of ~square tiles.

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

  • nb_squarish_tiles (int) – indication of the number of tiles wanted.

  • nb_squarish_tiles_max (int, optional) – the maximum number of tiles.

Returns:

ndarray with tiles.

Return type:

NDArray[Polygon]