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

clib.session: Add the GMT_SESSION_NOGDALCLOSE flag to keep GDAL open #3672

Merged
merged 1 commit into from
Dec 4, 2024

Conversation

seisman
Copy link
Member

@seisman seisman commented Dec 4, 2024

As explained in geopandas/pyogrio#448 (comment), the errors we see in #3301, is because GMT destroys the GDAL drivers registered by pyogrio or rasterio.

To avoid GMT destroying the GDAL drivers, we need to add the GMT_SESSION_NOGDALCLOSE flag when creating sessions.

The same change is applied in #3305 and it works well.

xref:

Closes geopandas/pyogrio#448.

Closes #3301.

@seisman seisman added bug Something isn't working needs review This PR has higher priority and needs review. run/test-gmt-dev Trigger the GMT Dev Tests workflow in PR labels Dec 4, 2024
@seisman seisman added this to the 0.14.0 milestone Dec 4, 2024
Copy link
Member

@weiji14 weiji14 left a comment

Choose a reason for hiding this comment

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

Nice finding, and easy enough to fix luckily!

@seisman seisman removed needs review This PR has higher priority and needs review. run/test-gmt-dev Trigger the GMT Dev Tests workflow in PR labels Dec 4, 2024
@seisman seisman merged commit c4ea77e into main Dec 4, 2024
25 checks passed
@seisman seisman deleted the clib/noclosegdal branch December 4, 2024 05:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants