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 get_gdal_data_path to query GDAL data directory #160

Merged
merged 3 commits into from
Sep 30, 2022

Conversation

jorisvandenbossche
Copy link
Member

@jorisvandenbossche jorisvandenbossche commented Sep 27, 2022

Fixes #159

I made the small function I tested when commenting about this on the geopandas repo into a PR.

@jorisvandenbossche jorisvandenbossche changed the title ENH: add get_gdal_data_path ENH: add get_gdal_data_path to query GDAL data directory Sep 27, 2022
-------
str, or None if data directory was not found
"""
return _get_gdal_data_path()
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I took this approach of wrapping into another function to mimic what we did for get/set_gdal_config_option (although it seems a bit superfluous)

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

Should this go into 0.4.1 (still pending a fix for the release failures) or wait for 0.5 (which should include #155 and other new big features)? Either way, would you mind adding a changelog entry?

@jorisvandenbossche
Copy link
Member Author

Since it's only a tiny helper function, I suppose it can be included in 0.4.2?

@brendan-ward brendan-ward merged commit b1bbecd into geopandas:main Sep 30, 2022
@jorisvandenbossche jorisvandenbossche deleted the gdal-data-path branch September 30, 2022 15:54
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: expose function to list GDAL directories
2 participants