grass
grass copied to clipboard
wxGUI/gui_core: fix import Rasterlite DB raster
Describe the bug Import Rasterlite DB raster via wxGUI Import raster data dialog doesn't work.
To Reproduce Steps to reproduce the behavior:
- Launch wxGUI
- Export some raster map into Rasterlite DB e.g.
r.out.gdal --overwrite input=elevation@PERMANENT output=/tmp/elevation.db format=Rasterlite - From the Data catalog toolbar activate Import raster data tool
- From the Import raster data dialog Source type choose Database RadioButton widget
- From the Source input Format ComboBox widget choose Rasterlite
- Set Name TextCtrl widget Rasterlite DB path
/tmp/elevation.db - List of raster layers ListCtrl widget is empty, no raster layers are loaded.
Expected behavior Loading Rasterlite DB raster layer and importing via wxGUI Import raster data dialog should be work.
Screenshots
Current behavior:

Expected behavior:

System description (please complete the following information):
- Operating System: all
- GRASS GIS version: all
Rebase https://github.com/OSGeo/grass/commit/e0377def61f3a8ed1a0d00b857fe8e29ff59f6c3.
Rebase https://github.com/OSGeo/grass/commit/c0668a97ccad9129785252ed63404f8ec8bee3e3.
With https://github.com/OSGeo/grass/pull/2513/commits/3ef684ebfec1945b0f2bab37c9a4c28cf17d599d is used gdalinfo for getting list of raster names of Rasterlite DB. Sucessfully tested with importing one or multiple rasters from Rasterlite DB.