Rotated window_bounds can omit raster corners
@prranitarora▲ 11 net votes
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.