Skip to content

GridGenerator

A grid generator generates a grid of tiles. The grid generator can be used to compute the coordinates of the bottom left corner of each tile or to generate a geodataframe of the grid for aggregation.

PARAMETER DESCRIPTION
bounding_box

bounding box

TYPE: BoundingBox

epsg_code

EPSG code

TYPE: EPSGCode

compute_coordinates

Computes the coordinates of the bottom left corner of each tile.

PARAMETER DESCRIPTION
tile_size

tile size in meters

TYPE: TileSize

quantize

if True, the bounding box is quantized to tile_size

TYPE: bool DEFAULT: True

RETURNS DESCRIPTION
CoordinatesSet

coordinates (x_min, y_min) of each tile

generate_grid

Generates a geodataframe of the grid.

PARAMETER DESCRIPTION
tile_size

tile size in meters

TYPE: TileSize

quantize

if True, the bounding box is quantized to tile_size

TYPE: bool DEFAULT: True

RETURNS DESCRIPTION
gpd.GeoDataFrame

grid