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

ENH: capture all errors logged by gdal when opening a file fails #495

Open
wants to merge 23 commits into
base: main
Choose a base branch
from

Conversation

theroggy
Copy link
Member

@theroggy theroggy commented Nov 10, 2024

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

Copy link
Member

@jorisvandenbossche jorisvandenbossche left a 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)?

pyogrio/_err.pyx Outdated Show resolved Hide resolved
pyogrio/_err.pyx Outdated Show resolved Hide resolved
pyogrio/_err.pyx Outdated Show resolved Hide resolved
Copy link
Member

@brendan-ward brendan-ward left a 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.

pyogrio/_err.pyx Outdated Show resolved Hide resolved
pyogrio/_err.pyx Outdated Show resolved Hide resolved
pyogrio/_err.pyx Outdated Show resolved Hide resolved
pyogrio/_err.pyx Outdated Show resolved Hide resolved
pyogrio/_err.pyx Outdated Show resolved Hide resolved
pyogrio/_err.pyx Outdated Show resolved Hide resolved
pyogrio/_io.pyx Outdated Show resolved Hide resolved
pyogrio/_io.pyx Outdated Show resolved Hide resolved
@theroggy
Copy link
Member Author

theroggy commented Nov 12, 2024

Do you have a link to the PRs that added this to rasterio/fiona (that might have some background)?

I added links to them in the PR description...

pyogrio/_err.pyx Outdated Show resolved Hide resolved
pyogrio/_err.pyx Outdated Show resolved Hide resolved
pyogrio/_err.pyx Outdated Show resolved Hide resolved
pyogrio/_err.pyx Outdated Show resolved Hide resolved
pyogrio/_err.pyx Outdated Show resolved Hide resolved
pyogrio/_err.pyx Outdated Show resolved Hide resolved
Copy link
Member

@jorisvandenbossche jorisvandenbossche left a 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

pyogrio/_err.pyx Show resolved Hide resolved
pyogrio/_err.pyx Outdated Show resolved Hide resolved
pyogrio/_err.pyx Outdated Show resolved Hide resolved
pyogrio/_err.pyx Outdated Show resolved Hide resolved
pyogrio/_io.pyx Outdated Show resolved Hide resolved
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

Successfully merging this pull request may close these issues.

ENH: keep full gdal error when error is thrown by gdal while reading a file
3 participants