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

ogr module not available for gdal v3.2 #44

Closed
msmith-ccom opened this issue Dec 9, 2020 · 1 comment
Closed

ogr module not available for gdal v3.2 #44

msmith-ccom opened this issue Dec 9, 2020 · 1 comment
Assignees

Comments

@msmith-ccom
Copy link
Collaborator

msmith-ccom commented Dec 9, 2020

Issue:
When creating the environment to run Soundspeed Manager and using conda to install gdal:
conda install gdal
Installs gdal v3.2 from the conda-forge feedstock.

Running :

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'ogr'

This is related to conda-forge/gdal-feedstock#419 and OSGeo/gdal#3149
Use of :

import gdal
import ogr
import osr

Is depreciated. It is suggested that a refactor be done to use the preferred method:

from osgeo impport gdal, ogr, osr
@giumas
Copy link
Collaborator

giumas commented Dec 13, 2020

PR merged

@giumas giumas closed this as completed Dec 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants