Skip to content

Error: Database Selection in GMLAS Wizard not working #237

@frida-161

Description

@frida-161

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugHouston, we've a problem!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions