Bug report #16997

Cannot load multiple rasters from GeoPackage on Windows

Added by Michi Scholz 4 months ago. Updated 3 months ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Rasters
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

Description

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.

demoraster.tif (2.11 KB) Michi Scholz, 08/10/2017 11:44 AM

History

#1 Updated by Giovanni Manghi 4 months 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 3 months 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)

Also available in: Atom PDF