Skip to content

gdal backwards compatibility#19

Open
skoulouzis wants to merge 12 commits intomultiply-org:masterfrom
QCDIS:master
Open

gdal backwards compatibility#19
skoulouzis wants to merge 12 commits intomultiply-org:masterfrom
QCDIS:master

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