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:
|
epsg_code
|
EPSG code
TYPE:
|
compute_coordinates
Computes the coordinates of the bottom left corner of each tile.
PARAMETER | DESCRIPTION |
---|---|
tile_size
|
tile size in meters
TYPE:
|
quantize
|
if True, the bounding box is quantized to
TYPE:
|
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:
|
quantize
|
if True, the bounding box is quantized to
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
gpd.GeoDataFrame
|
grid |