Open Emasoft opened 1 year ago
Apparently there is a switch to enable the inclusion of GPKG driver in GDAL when building from sources: https://gdal.org/development/building_from_source.html#selection-of-drivers
OGR_ENABLE_DRIVER_GPKG
And there is another switch to include all optional drivers support.
add these options to the initial cmake command:
-DGDAL_BUILD_OPTIONAL_DRIVERS=ON
-DOGR_BUILD_OPTIONAL_DRIVERS=ON
Do not know if this is relevant.
Hi, thanks for the detailed description. As you found out, GDAL is included with a-Shell, but not the GPKG driver. It makes sense that you cannot install it yourself (remember, only pure-Python packages can be installed by the user, nothing that requires compilation).
I'll have a look at enabling the GPKG driver, but there is a sentence in the GDAL building instructions that makes me wonder: "By default, all drivers that have their build requirements satisfied will be built-in in the GDAL core library."
Looking further, GPKG is indeed enabled by default, but requires the sqlite3 library, which is not currently cross-compiled.
This means that we cannot read GPKG files in a-Shell? Geopackage is the only (good) free and opensource geographical data format. What a pity. But I understand that this is a minor niche. Other popular projects need priority.
Actually, I found out that sqlite3 is part of the standard SDK but for some reasons the GDAL building script did not find it automatically. With a bit of help, it's now fixed. It will be in the next version.
GREAT! You are the best! 🎉👍
I have an issue with geopandas, the library added in the last update of a-Shell. More precisely, I have an issue with its dependency Fiona, specifically the sub-dependency GDAL, needed to support the file formats, since I have many scripts that breaks because of it.
On my other PC at home the GPKG file format is perfectly supported. Then I need to check if the fiona package installed with a-Shell does support it. I checked and the results are these:
It appears that the Geopackage format (GPKG) is not listed among the supported drivers on a-Shell. This is likely the cause of the error. On my PC at home I get the list and the GPKG file format is included:
So I need to ensure that I have an updated GDAL version that supports Geopackage (.gpkg) file format and that the associated drivers are correctly installed on a-Shell. So I started checking the gdal-config, but I got this:
The environment path variable doesn't seem the issue, since when I try to search the gdal-config in a-Shell, it does not exist. Then I supposed that GDAL is not installed or is an old version. So I tried to install it, but I get the following error:
So the version of GDAL is not installable and not upgradeable. Any idea?