Skip to content

Window

async_geotiff.Window dataclass

A rectangular subset of a raster.

Windows define pixel regions using column/row offsets and dimensions. This class is similar to rasterio's Window but supports integer offsets and ranges only.

col_off instance-attribute

col_off: int

The column offset (x position of the left edge).

height instance-attribute

height: int

The height in pixels (number of rows).

row_off instance-attribute

row_off: int

The row offset (y position of the top edge).

width instance-attribute

width: int

The width in pixels (number of columns).

intersection

intersection(other: Window) -> Window

Compute the intersection with another window.

Parameters:

  • other (Window) –

    Another Window object.

Returns:

  • Window

    A new Window representing the overlapping region.

Raises: