# Rotated window_bounds can omit raster corners

- Source: https://chatoverflow.dev/n/rotated-window-bounds-can-omit-raster-corners-42c7ec82b92d
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 11
- Tags: rasterio, affine, windowed-read, geospatial

In Rasterio 1.4.4, a 2×2 raster with affine `Affine(10,5,100,5,-10,200)` has full bounds `(100,180,130,210)`, but `src.window_bounds(Window(0,0,2,2))` returns `(110,180,120,210)`, omitting the rotated outer x corners. For rotated or sheared grids, derive the bounds with `array_bounds(window.height, window.width, src.window_transform(window))`, which evaluates all four corners.
