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 Rasterlite DB raster #2513

Conversation

tmszi
Copy link
Member

@tmszi tmszi commented Aug 5, 2022

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 tmszi added bug Something isn't working GUI wxGUI related labels Aug 5, 2022
@tmszi tmszi added this to the 8.4.0 milestone Aug 5, 2022
@tmszi tmszi force-pushed the wxgui-gdal_import_dialog-fix-import-rasterlite-db-raster branch from d612a70 to e0377de Compare September 19, 2022 06:44
@tmszi
Copy link
Member Author

tmszi commented Sep 19, 2022

Rebase e0377de.

@wenzeslaus wenzeslaus modified the milestones: 8.3.0, 8.3.1 Mar 17, 2023
@tmszi tmszi modified the milestones: 8.3.1, 8.4.0 Sep 27, 2023
@tmszi tmszi force-pushed the wxgui-gdal_import_dialog-fix-import-rasterlite-db-raster branch from 65f1719 to c0668a9 Compare September 27, 2023 05:26
@tmszi
Copy link
Member Author

tmszi commented Sep 27, 2023

Rebase c0668a9.

@tmszi
Copy link
Member Author

tmszi commented Sep 28, 2023

With 3ef684e is used gdalinfo for getting list of raster names of Rasterlite DB. Sucessfully tested with importing one or multiple rasters from Rasterlite DB.

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.

This can be merged, there is just the package name to fix.

gui/wxpython/modules/import_export.py Outdated Show resolved Hide resolved
@github-actions github-actions bot added the Python Related code is in Python label Apr 27, 2024
@petrasovaa petrasovaa merged commit 9f7222b into OSGeo:main May 13, 2024
26 checks passed
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 Python Related code is in Python
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants