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: Ignore fields not in specified columns when reading features #195

Merged
merged 2 commits into from
Jan 5, 2023

Conversation

brendan-ward
Copy link
Member

Resolves #153.

Adapts the pattern for doing this in #155.

When columns are passed to ogr_read, any fields not requested to be read are set to be ignored by GDAL, which should reduce I/O when reading features from some drivers.

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

Thanks, looks good!

@jorisvandenbossche jorisvandenbossche merged commit 81278c7 into main Jan 5, 2023
@jorisvandenbossche jorisvandenbossche deleted the issue153 branch January 5, 2023 07:47
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: avoid I/O when columns don't need to be returned
2 participants