Re: How to import GDAL embedded in new Fiona wheels
Sean Gillies
Hi, On Tue, Nov 29, 2022 at 3:27 AM <tgrandje@...> wrote: Thanks. Correct. Fiona's wheels contain a GDAL shared library (libgdal.dll or .so or .dylib) and its own library dependencies (libproj, etc). By GDAL, we mean the C library. I don't think this is inaccurate. I don't see that it's completely natural to assume that fiona imports osgeo.gdal. There are no such imports anywhere in the code and no instructions in the project to install the osgeo.gdal package.
It's not a great solution, I agree, and not only because you'll have two copies of libgdal. The Fiona project is not promoting it as a solution at all. In https://rasterio.readthedocs.io/en/latest/topics/switch.html#mutual-incompatibilities, I've warned users against this and I should probably do the same for Fiona to make it more clear. Would that help?
-- Sean Gillies
|
|