A question about the rasterio precision & python floats (Pixel width & height)


When opening my raster with QGIS, I can see the Pixel Size of my raster as:


When I read he same raster with rasterio, I get pixel size values with a lower precision and I guess this causes some problems when calculating new affines for another extent

0.0008333333299974727 0.0008333333300202157

I have tries to pass the decimal_precision=X when opening my raster with rasterio, but this has no effect. I guess this is a general float problem on my system. My suggestion therefore would be to use python Decimals or any other type representing real floats.

Join main@rasterio.groups.io to automatically receive all group messages.