grass icon indicating copy to clipboard operation
grass copied to clipboard

wxGUI/gui_core: fix import Rasterlite DB raster

Open tmszi opened this issue 3 years ago • 3 comments

Describe the bug Import Rasterlite DB raster via wxGUI Import raster data dialog doesn't work.

To Reproduce Steps to reproduce the behavior:

  1. Launch wxGUI
  2. Export some raster map into Rasterlite DB e.g. r.out.gdal --overwrite input=elevation@PERMANENT output=/tmp/elevation.db format=Rasterlite
  3. From the Data catalog toolbar activate Import raster data tool
  4. From the Import raster data dialog Source type choose Database RadioButton widget
  5. From the Source input Format ComboBox widget choose Rasterlite
  6. Set Name TextCtrl widget Rasterlite DB path /tmp/elevation.db
  7. 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:

wxgui_import_raster_data_rasterlite_db_raster_current

Expected behavior:

wxgui_import_raster_data_rasterlite_db_raster_exp

System description (please complete the following information):

  • Operating System: all
  • GRASS GIS version: all

tmszi avatar Aug 05 '22 15:08 tmszi

Rebase https://github.com/OSGeo/grass/commit/e0377def61f3a8ed1a0d00b857fe8e29ff59f6c3.

tmszi avatar Sep 19 '22 06:09 tmszi

Rebase https://github.com/OSGeo/grass/commit/c0668a97ccad9129785252ed63404f8ec8bee3e3.

tmszi avatar Sep 27 '23 05:09 tmszi

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.

tmszi avatar Sep 28 '23 14:09 tmszi