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
The text was updated successfully, but these errors were encountered:
Erkan70
changed the title
URL misses Ampersand when adding multiple features
Python Exception: URL misses Ampersand when adding multiple features
Jun 7, 2019
URL seems to use Comma's instead of Ampersands for the TypeNames.
Comma separator is correct syntax, for a list of type names. WFS 2.0 follows OGC 09-026r2, 5.5
Parameters consisting of lists shall use the comma (",") as the delimiter between items in the list. In addition, multiple lists may be specified as the value of a parameter by enclosing each list in parentheses; "(",")".
When I add below Inspire Harmonised WFS service I run into a Python error. The URL seems to use Comma's instead of Ampersands for the TypeNames.
https://geodata.nationaalgeoregister.nl/inspire/tn-a/wfs?service=WFS&v
ersion=2.0.0&request=GetFeature&typenames=tn-a%3AAerodromeArea%2Ctn-a%
3AAerodromeNode%2Ctn-a%3AElementWidth%2Ctn-a%3ARunwayArea%2Ctn-a%3ATax
iwayArea%2Ctn-a%3ATouchDownLiftOff
Error log:
Er is een fout opgetreden bij het uitvoeren van Python code:
requests.exceptions.HTTPError: 500 Server Error: for url: https://geodata.nationaalgeoregister.nl/inspire/tn-a/wfs?service=WFS&version=2.0.0&request=GetFeature&typenames=tn-a%3AAerodromeArea%2Ctn-a%3AAerodromeNode%2Ctn-a%3AElementWidth%2Ctn-a%3ARunwayArea%2Ctn-a%3ATaxiwayArea%2Ctn-a%3ATouchDownLiftOff
Traceback (most recent call last):
File "C:/Users/EfekErkan/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\gml_application_schema_toolbox\gui\load_wizard_xml.py", line 36, in validatePage
gml_path = self.wizard().gml_path()
File "C:/Users/EfekErkan/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\gml_application_schema_toolbox\gui\load_wizard.py", line 181, in gml_path
self._wfs_page.download(gml_path)
File "C:/Users/EfekErkan/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\gml_application_schema_toolbox\gui\load_wizard_wfs.py", line 227, in download
self.download_features(output_path)
File "C:/Users/EfekErkan/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\gml_application_schema_toolbox\gui\load_wizard_wfs.py", line 260, in download_features
response = wfs.getfeature(**params)
File "C:\PROGRA
1\QGIS31.6\apps\Python37\lib\site-packages\owslib\feature\wfs200.py", line 232, in getfeatureusername=self.username, password=self.password)
File "C:\PROGRA
1\QGIS31.6\apps\Python37\lib\site-packages\owslib\util.py", line 196, in openURLreq.raise_for_status()
File "C:\PROGRA
1\QGIS31.6\apps\Python37\lib\site-packages\requests\models.py", line 939, in raise_for_statusraise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 500 Server Error: for url: https://geodata.nationaalgeoregister.nl/inspire/tn-a/wfs?service=WFS&version=2.0.0&request=GetFeature&typenames=tn-a%3AAerodromeArea%2Ctn-a%3AAerodromeNode%2Ctn-a%3AElementWidth%2Ctn-a%3ARunwayArea%2Ctn-a%3ATaxiwayArea%2Ctn-a%3ATouchDownLiftOff
Python versie: 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)]
QGIS versie: 3.6.2-Noosa Noosa, 656500e0c4
Python pad:
C:/Users/EfekErkan/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\gml_application_schema_toolbox\extlibs
C:/PROGRA
1/QGIS31.6/apps/qgis/./pythonC:/Users/EfekErkan/AppData/Roaming/QGIS/QGIS3\profiles\default/python
C:/Users/EfekErkan/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins
C:/PROGRA
1/QGIS31.6/apps/qgis/./python/pluginsC:\Program Files\QGIS 3.6\bin\python37.zip
C:\PROGRA
1\QGIS31.6\apps\Python37\DLLsC:\PROGRA
1\QGIS31.6\apps\Python37\libC:\Program Files\QGIS 3.6\bin
C:\PROGRA
1\QGIS31.6\apps\Python37C:\PROGRA
1\QGIS31.6\apps\Python37\lib\site-packagesC:\PROGRA
1\QGIS31.6\apps\Python37\lib\site-packages\win32C:\PROGRA
1\QGIS31.6\apps\Python37\lib\site-packages\win32\libC:\PROGRA
1\QGIS31.6\apps\Python37\lib\site-packages\PythonwinC:/Users/EfekErkan/AppData/Roaming/QGIS/QGIS3\profiles\default/python
The text was updated successfully, but these errors were encountered: