Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open IDF fails with a cryptic error if an IDF is opened in a sector without user permissions #67

Open
Huite opened this issue Feb 7, 2024 · 0 comments

Comments

@Huite
Copy link
Contributor

Huite commented Feb 7, 2024

The GDAL driver fails silently in creating a tif when the user has no permission.

The resulting error is that None type has no attribute setGeoTransform:

self.__raster__.SetGeoTransform((xmin, dx, 0.0, ymax, 0.0, dy))

This is a typical problem since GDAL does not return error codes or anything. We should check whether the TIF has been succesfully made, and if not, raise a QGIS error.
This error should clearly state that the TIF could not be made, and that permissions are required as a hint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant