notebooks icon indicating copy to clipboard operation
notebooks copied to clipboard

fiona 1.8.0 bug breaks `datasets-identify.ipynb`

Open jreiberkyle opened this issue 7 years ago • 2 comments

In datasets-identify.ipynb, we use fiona to read the shapefile coordinate reference system. The version of fiona that is associated with the version of rasterio we are using, 1.8.0, has a bug where it is unable to open the EPSG support file gcs.csv. This issue is documented here. In 1.8.1, this bug will be fixed. Wait for 1.8.1 to go live and fix the installed fiona to that version.

jreiberkyle avatar Nov 13 '18 22:11 jreiberkyle

@jreiberkyle a work around exists: always open and access Fiona collections within the context of a fiona.Env:

with fiona.Env(), fiona.open("example.shp") as collection:
    print(collection.crs)

sgillies avatar Nov 14 '18 20:11 sgillies

Thanks @sgillies, will implement that workaround

jreiberkyle avatar Nov 27 '18 18:11 jreiberkyle