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

gdal backwards compatibility #19

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open

Conversation

skoulouzis
Copy link

From https://pypi.org/project/GDAL/

If you have previous code that imported the global module and still need to support the old import, a simple try…except import can silence the deprecation warning and keep things named essentially the same as before:

try:

...     from osgeo import gdal
... except ImportError:
...     import gdal

@jgomezdans
Copy link
Collaborator

Thanks for this, but I don't think this code is being updated/worked on anymore. Get in touch (j.gomez-dans at ucl.ac.uk) if you want to discuss.

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.

2 participants