You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When opening an IDF, it is converted to an equivalent geotiff file, which is written next to the IDF.
However, if the user does not have writing permission, GDAL will fail silently (since the Python bindings of GDAL do not raise exceptions). Then the raster type will be None, and setGeoTransform will fail instead, which is a very confusing error message.
What we should do instead, I think, is check whether GDAL has not failed, then raise that specific error ("IDF could not be converted to GeoTIFF"), which is probably still general, but less cryptic than "NoneType has no attribute setGeoTransform".
The text was updated successfully, but these errors were encountered:
When opening an IDF, it is converted to an equivalent geotiff file, which is written next to the IDF.
However, if the user does not have writing permission, GDAL will fail silently (since the Python bindings of GDAL do not raise exceptions). Then the raster type will be None, and setGeoTransform will fail instead, which is a very confusing error message.
What we should do instead, I think, is check whether GDAL has not failed, then raise that specific error ("IDF could not be converted to GeoTIFF"), which is probably still general, but less cryptic than "NoneType has no attribute setGeoTransform".
The text was updated successfully, but these errors were encountered: