reading with a window doesn't honour window shape
I have the following problem: I want to read a dataset using a window with a specific shape, but the window shape isn't always honored from the returned array.
You can replicate this problem using this dataset: https://www.worldpop.org/geodata/summary?id=6334
with rasterio.open(raster_pop_path) as src_pop:
window = Window(col_off=1470.4999917338748, row_off=2902.4961942222235, width=1200, height=1200)
pop_arr = src_pop.read(1, window=window)
print returns (1200, 1199) while it should be (1200, 1200)
Any idea why this could happen?
Thanks in advance
Geospatial software developer