You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to load a layer from a WFS using the wizard with GMLAS results in an error for me:
_core.QgsProcessingException: Kann Algorithmus nicht ausführen Konnte Quelllayer für INPUT nicht laden: keine Wert für Parameter angegeben
Traceback (most recent call last):
File "[...]/python/plugins/gml_application_schema_toolbox/gui/load_wizard.py", line 202, in validatePage
self._panel.do_load()
File "[...]/python/plugins/gml_application_schema_toolbox/gui/import_gmlas_panel.py", line 402, in do_load
self.translate_processing(params)
File "[...]/python/plugins/gml_application_schema_toolbox/gui/gmlas_panel_mixin.py", line 106, in translate_processing
res = processing.run("gdal:convertformat", params, feedback=feedback)
File "/usr/share/qgis/python/plugins/processing/tools/general.py", line 108, in run
return Processing.runAlgorithm(algOrName, parameters, onFinish, feedback, context)
File "/usr/share/qgis/python/plugins/processing/core/Processing.py", line 181, in runAlgorithm
raise QgsProcessingException(msg)
_core.QgsProcessingException: Kann Algorithmus nicht ausführen
Konnte Quelllayer für INPUT nicht laden: keine Wert für Parameter angegeben
The german message says that there was no value passed for the parameter INPUT.
I already tried changing that to INPUT but then I get another QgsProcessingException about the file path not being found (GMLAS:/tmp/tmpfudmiwrq.gml). I guess the prefix is the issue, the file exists. My GDAL should support GMLAS, ogrinfo GMLAS:/tmp/tmpfudmiwrq.gml lists 25 layers in it.
The QGIS docs for gdal:convertformat do not list a INPUT_FILE parameter so I guess it is simply swallowed in any case?
To Reproduce
Steps to reproduce the behavior:
Have a clean profile, install 1.4.0-beta6
Add a new spatialite database in the QGIS browser, otherwise the plugin will show a warning message bar and crash earlier
"Load (wizard)" -> "WFS" -> "Connect" -> pick "Ave:VerwaltungsEinheit" -> "Load in relational mode (GMLAS)" -> pick the database
After the last step, the described crash will happen
Expected behavior
I guess the data should get loaded as layer?
Additional Context
get_db_format crash
Without an available spatialite database, the plugin would crash with:
AttributeError: 'DatabaseWidget' object has no attribute 'get_db_format'
Traceback (most recent call last):
File "[...]/python/plugins/gml_application_schema_toolbox/gui/load_wizard.py", line 202, in validatePage
self._panel.do_load()
File "[...]/python/plugins/gml_application_schema_toolbox/gui/import_gmlas_panel.py", line 376, in do_load
db_format = self.databaseWidget.get_db_format
AttributeError: 'DatabaseWidget' object has no attribute 'get_db_format'
I checked "get_db_format in dir(self.databaseWidget) == True to be true, no idea what's going on there...
Also not working with internal gmlas:convertformat_gmlas algorithm
Seems like it was simply not tested and fully implemented on newer QGIS. As a workaround I removed the if clause to always use the internal gmlas:convertformat_gmlas algorithm. In that case one must not tinker with the INPUT_FILE parameter as I did above, INPUT_FILE is correct then, INPUT is not.
Environment
Description
Trying to load a layer from a WFS using the wizard with GMLAS results in an error for me:
The german message says that there was no value passed for the parameter
INPUT
.The code path confirms that:
gml_application_schema_toolbox/gml_application_schema_toolbox/gui/import_gmlas_panel.py
Lines 314 to 319 in f40f85f
I already tried changing that to
INPUT
but then I get anotherQgsProcessingException
about the file path not being found (GMLAS:/tmp/tmpfudmiwrq.gml
). I guess the prefix is the issue, the file exists. My GDAL should support GMLAS,ogrinfo GMLAS:/tmp/tmpfudmiwrq.gml
lists 25 layers in it.The QGIS docs for gdal:convertformat do not list a
INPUT_FILE
parameter so I guess it is simply swallowed in any case?To Reproduce
Steps to reproduce the behavior:
Expected behavior
I guess the data should get loaded as layer?
Additional Context
get_db_format
crashWithout an available spatialite database, the plugin would crash with:
I checked
"get_db_format in dir(self.databaseWidget) == True
to be true, no idea what's going on there...Also not working with internal
gmlas:convertformat_gmlas
algorithmWhen I changed the if clause in
gml_application_schema_toolbox/gml_application_schema_toolbox/gui/gmlas_panel_mixin.py
Line 99 in 607accd
gmlas:convertformat_gmlas
algorithm instead, it also crashed saying that theINPUT
file could not be found.Logs
The text was updated successfully, but these errors were encountered: