Bug report #16997
Cannot load multiple rasters from GeoPackage on Windows
|Affected QGIS version:||2.18.11||Regression?:||No|
|Operating System:||Windows||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||up/downstream|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||24896|
In QGIS 2.18.11 (GDAL 2.2.1) I can add a raster from a GeoPackage only if there is no other raster stored in the dataset. Having >= 2 rasters shows a selection dialogue but on selection of one or all of these rasters nothing happens. The dialogue just closes and QGISes error log does not show any hints regarding this issue.
For my test I imported the same layer twice using GDAL:
gdal_translate -of GPKG demoraster.tif empty.gpkg -co APPEND_SUBDATASET=YES -co RASTER_TABLE=demoraster
gdal_translate -of GPKG demoraster.tif empty.gpkg -co APPEND_SUBDATASET=YES -co RASTER_TABLE=demoraster2
Afterwards I can access these two raster tables in my
empty.gpkg individually via GDAL without problems. By the way this problem also popped up on StackExchange.
#1 Updated by Giovanni Manghi almost 6 years ago
- Operating System changed from Windows 7 x64 to Windows
- Subject changed from Cannot load multiple rasters from GeoPackage to Cannot load multiple rasters from GeoPackage on Windows
This appear to be a Windows issue as it work as expected on Linux. macOS not yet tested.
#2 Updated by Even Rouault almost 6 years ago
- Resolution set to up/downstream
- Status changed from Open to Closed
This is a GDAL issue
Fix pushed in GDAL trunk https://trac.osgeo.org/gdal/changeset/39962 and branches/2.2 https://trac.osgeo.org/gdal/changeset/39963 (for 2.2.2)