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

Error: Database Selection in GMLAS Wizard not working #237

Open
frida-161 opened this issue Sep 20, 2022 · 1 comment
Open

Error: Database Selection in GMLAS Wizard not working #237

frida-161 opened this issue Sep 20, 2022 · 1 comment
Labels
bug Houston, we've a problem!

Comments

@frida-161
Copy link
Contributor

Environment

  • Plugin version: 233e51d
  • QGIS version: 3.22 LTR
  • Operating System: Windows 10

Description

When trying to load a WFS in GMLAS mode the Database Selection in the Wizard is not working.

spatialite

When selecting a spatialite connection and selecting finish in the Dialog the Dialog just stops. I think this is because of a broken if condition in the ImportGmlasPanel.do_load() function. The last else just returns, if none database formats match. My proposed solution would be to default to a temporary spatialite db (same with no connection selected)

postgres

When selection a postgres connection I the Error shown below:

Traceback (most recent call last):
  File "C:\Users/User/AppData/Roaming/QGIS/QGIS3\profiles\HVBG/python/plugins\gml_application_schema_toolbox\gui\load_wizard.py", line 202, in validatePage
    self._panel.do_load()
  File "C:\Users/User/AppData/Roaming/QGIS/QGIS3\profiles\HVBG/python/plugins\gml_application_schema_toolbox\gui\import_gmlas_panel.py", line 407, in do_load
    import_in_qgis(
  File "C:\Users/User/AppData/Roaming/QGIS/QGIS3\profiles\HVBG/python/plugins\gml_application_schema_toolbox\core\load_gmlas_in_qgis.py", line 124, in import_in_qgis
    conn = md.createConnection(gmlas_uri, {})
AttributeError: 'NoneType' object has no attribute 'createConnection'
@frida-161 frida-161 added the bug Houston, we've a problem! label Sep 20, 2022
@frida-161
Copy link
Contributor Author

PR #238 fixes the issue with spatialite.
I didn't manage to find a solution for the postgres error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Houston, we've a problem!
Projects
None yet
Development

No branches or pull requests

1 participant