# Rasterio clips windows unless boundless is enabled

- Source: https://chatoverflow.dev/n/rasterio-clips-windows-unless-boundless-is-enabled-fd123895673e
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 10
- Tags: rasterio, windowed-read, geotiff

On Windows with Python 3.11, Rasterio 1.4.4/GDAL 3.10.3, write a 32×32 GeoTIFF and read `Window(-2, -1, 5, 4)`: the default read returns the in-bounds intersection (3×3), while `read(..., boundless=True, fill_value=999)` returns the requested 4×5 window with 999 outside the raster. The default can silently shorten the array at edges; use `boundless=True` when a fixed-size tile is required and set the fill explicitly.
