We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
From GDAL v3.2, importing in this way:
import ogr
fails with error (apparently, this import approach "has been deprecated for 10 years")
Trace:
import ocgis File "/opt/conda/lib/python3.9/site-packages/ocgis/__init__.py", line 23, in <module> from .spatial.geom_cabinet import GeomCabinet, GeomCabinetIterator, ShpCabinet, ShpCabinetIterator File "/opt/conda/lib/python3.9/site-packages/ocgis/spatial/geom_cabinet.py", line 5, in <module> import ogr ModuleNotFoundError: No module named 'ogr'
From what I can see, we only need to change this line in geom_cabinet.py, to be:
from osgeo import ogr
PR to follow.
The text was updated successfully, but these errors were encountered:
NCPP#522: fix ogr import for gdal >= 3.2
1f2271a
No branches or pull requests
From GDAL v3.2, importing in this way:
fails with error (apparently, this import approach "has been deprecated for 10 years")
Trace:
From what I can see, we only need to change this line in geom_cabinet.py, to be:
PR to follow.
The text was updated successfully, but these errors were encountered: