Skip to main content
Convert geographic bounds to an outward-rounded GeoTIFF pixel window clipped to the image.
This function requires Python 3.11 or newer and is imported from tilebox.storage.geotiff.

Parameters

GeoTIFF
The open async-geotiff image.
tuple[float, float, float, float]
Coordinates in (left, bottom, right, top) order.
str | int | CRS | Proj
The coordinate reference system of bounds.
bool
Whether to reject bounds that extend beyond the image instead of clipping them. Defaults to False.

Returns

An async-geotiff Window containing every pixel touched by the bounds.