Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wxGUI/gui_core: fix import PostGIS DB raster #2516

Merged

Conversation

tmszi
Copy link
Member

@tmszi tmszi commented Aug 8, 2022

Describe the bug
Import PostGIS 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 GTiff format e.g. r.out.gdal input=elevation output=/tmp/elevation.tif and import with raster2pgsql -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
  3. Set PostGIS DB connection via db.login module
  4. From the Data catalog toolbar activate Import raster data tool
  5. From the Import raster data dialog Source type choose Database RadioButton widget
  6. From the Source input Format ComboBox widget choose PostGIS Raster driver
  7. From the Name ComboBox widget choose your database name
  8. 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:

wxgui_import_raster_data_postgisdb_db_raster_current

Expected behavior:

wxgui_import_raster_data_postgisdb_db_raster_exp

System description (please complete the following information):

  • Operating System: all
  • GRASS GIS version: all

@tmszi tmszi added bug Something isn't working GUI wxGUI related labels Aug 8, 2022
@tmszi tmszi added this to the 8.4.0 milestone Aug 8, 2022
Copy link
Contributor

@petrasovaa petrasovaa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't review/test this in detail, so I just left couple notes/questions.

Thanks!

gui/wxpython/gui_core/gselect.py Outdated Show resolved Hide resolved
gui/wxpython/gui_core/gselect.py Outdated Show resolved Hide resolved
@tmszi tmszi merged commit 4ca037f into OSGeo:main Aug 29, 2022
@tmszi tmszi deleted the wxgui-gdal_import_dialog-fix-import-postgis-db-raster branch August 29, 2022 13:00
ninsbl pushed a commit to ninsbl/grass that referenced this pull request Oct 26, 2022
ninsbl pushed a commit to ninsbl/grass that referenced this pull request Feb 17, 2023
neteler pushed a commit to nilason/grass that referenced this pull request Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working GUI wxGUI related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants