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: Add support for dataset read options #233

Merged
merged 2 commits into from
Apr 2, 2023
Merged

Conversation

brendan-ward
Copy link
Member

Resolves #216

This adds basic support for dataset read options to read(...), read_dataframe(...), and read_info(...).

Because we don't know the driver until after GDAL opens the dataset, it is hard to validate the options ourselves. GDAL raises warnings to stderr for invalid options, which we can't capture.

@brendan-ward brendan-ward added the enhancement New feature or request label Apr 2, 2023
@brendan-ward brendan-ward added this to the 0.6.0 milestone Apr 2, 2023
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.

Looks good, thanks!

@jorisvandenbossche
Copy link
Member

Because we don't know the driver until after GDAL opens the dataset, it is hard to validate the options ourselves. GDAL raises warnings to stderr for invalid options, which we can't capture.

Yeah, the printing to stderr is something I have been planning to look at (#91). And e should try to capture warnings as well. But that's for a separate issue!

@jorisvandenbossche jorisvandenbossche merged commit d371dde into main Apr 2, 2023
@jorisvandenbossche jorisvandenbossche deleted the issue216 branch April 2, 2023 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ENH: Passing driver options to ogr when reading
2 participants