You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rasterio and GDAL’s bindings can contend for global GDAL objects. Unless you have deep knowledge about both packages, choose exactly one of import osgeo.gdal or import rasterio.
GDAL’s bindings (gdal for the rest of this document) and Rasterio are not entirely compatible and should not, without a great deal of care, be imported and used in a single Python program.
To Reproduce rasterio is imported at the head of gemgis/raster.py (line 25) and gdal is imported in the same file (line 2737).
The text was updated successfully, but these errors were encountered:
Hello and welcome! Thanks for posting your first issue in the GemGIS project! Someone from our developers will get back to you. If your question is support related, we may transfer it to the Discussions.
Describe the bug
It is recommended to avoid importing
gdal
andrasterio
in the same Python program. According to https://rasterio.readthedocs.io/en/latest/topics/switch.html#mutual-incompatibilities:To Reproduce
rasterio
is imported at the head ofgemgis/raster.py
(line 25) andgdal
is imported in the same file (line 2737).The text was updated successfully, but these errors were encountered: