rasterio.rio.overview module

Manage overviews of a dataset.

rasterio.rio.overview.build_handler(ctx, param, value)
rasterio.rio.overview.get_maximum_overview_level(width, height, minsize=256)

Calculate the maximum overview level of a dataset at which the smallest overview is smaller than minsize.

rasterio.rio.overview.width

Width of the dataset.

Type

int

rasterio.rio.overview.height

Height of the dataset.

Type

int

rasterio.rio.overview.minsize

Minimum overview size.

Type

int (default: 256)

Returns

overview_level – overview level.

Return type

int