BRGM / gml_application_schema_toolbox

GML Application Schema toolbox is a QGIS plugin allowing to manipulate OGC Complex Features
https://brgm.github.io/gml_application_schema_toolbox/
GNU General Public License v2.0
28 stars 18 forks source link

V 1.3.1 - GMLAS Mode - GetFeatureCount error on (GroundWater Quantity Monitoring Facility GML ) Step 5 #132

Open sgrellet opened 3 years ago

sgrellet commented 3 years ago

Environment

Description

To Reproduce

Follow https://brgm.github.io/gml_application_schema_toolbox/testing/scenario_mode_gmlas_local.html Do step 1, 2 and directly 5 as described.

For step 5 on groundwaterlevel_href > (‘Load’ button click) > ‘Options for xlink:href loading’

Another way to test this is directly loading in GMLAS mode the URL of this file; no need to load the BoreholeView.xml file to have this bug.

Expected behavior


Additional context

Logs

RuntimeError: HTTP error code : 404 
Traceback (most recent call last):
  File "C:/Users/grellets/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\gml_application_schema_toolbox\gui\import_gmlas_panel.py", line 156, in on_loadLayersButton_clicked
    self.validate()
  File "C:/Users/grellets/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\gml_application_schema_toolbox\gui\import_gmlas_panel.py", line 181, in validate
    feature_count = layer.GetFeatureCount()
  File "C:\PROGRA~1\QGIS3~1.16\apps\Python37\lib\site-packages\osgeo\ogr.py", line 1536, in GetFeatureCount
    return _ogr.Layer_GetFeatureCount(self, *args, **kwargs)
RuntimeError: HTTP error code : 404