Automating-GIS-processes/site

Lesson 2: printing all available Drivers supported by GDAL

Closed this issue · 1 comments

Using the below fiona/GDAL releases:

fiona.__version__
-> '1.8.13'

fiona.gdal_version
-> GDALVersion(major=3, minor=0, revision=4)

I get the below error when I try to import GDALEnv:

from fiona._drivers import GDALEnv
-> ModuleNotFoundError: No module named 'fiona._drivers'

I'm able to get the same output by doing the following:

from fiona.env import GDALEnv
env = GDALEnv()
env.drivers().keys()

Closing this now, Lesson 2 data I/O section was updated for this year's course.