-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
ENH: capture all errors logged by gdal when opening a file fails #495
ENH: capture all errors logged by gdal when opening a file fails #495
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for looking into this! Added a few quick questions
Do you have a link to the PRs that added this to rasterio/fiona (that might have some background)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this @theroggy ! A few suggestions re: naming things.
I added links to them in the PR description... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! A few more comments/questions
…d all logic was moved to clean_error_message
…duplicate code in ErrorHandler
…ors-logged-by-gdal-when-opening-a-file-fails
This appears to be raising a lot of test errors on GDAL 3.4.3 specifically; is that expected? |
No... I've had a look at it... but I didn't really see why these errors occur... and even less why these changes triggered them to start failing. If you have an idea... very welcome. |
…ors-logged-by-gdal-when-opening-a-file-fails
Support for OGR_GEOJSON_MAX_OBJ_SIZE with float values only for gdal >= 3.5.2 by PR https://github.com/OSGeo/gdal/pull/6177/files#diff-821a801ab3a6e3e8ad5fa9883c48daf282b2ea5d4150408c57a62adff626652b
@brendan-ward I found and fixed the issue with gdal < 3.5.2... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for updating @theroggy ; just a few minor comments.
…ors-logged-by-gdal-when-opening-a-file-fails
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @theroggy !
This was present in Rasterio (rasterio/rasterio#2526) and has been included in fiona::_err recently (Toblerity/Fiona#1408)... so this PR is based on the change there.
Closes #491