grass
grass copied to clipboard
wxGUI/gui_core: fix import PostGIS DB raster
Describe the bug Import PostGIS 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 GTiff format e.g.
r.out.gdal input=elevation output=/tmp/elevation.tifand import withraster2pgsql -I -C -s 3358 /tmp/elevation.tif public.elevation | psql -d <YOUR_DATABASE> -U <YOUR_DATABASE_USER> -h <YOUR_DATABASE_HOST> -p <YOUR_DATABASE_PORT>to PostGIS DB - Set PostGIS DB connection via
db.loginmodule - 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 PostGIS Raster driver
- From the Name ComboBox widget choose your database name
- List of raster layers ListCtrl widget is empty, no raster layers are loaded.
Expected behavior Loading PostGIS 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