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

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

Open
sgrellet opened this issue Mar 11, 2021 · 0 comments
Assignees
Labels
bug Houston, we've a problem!
Milestone

Comments

@sgrellet
Copy link
Member

Environment

  • Plugin version: 1.3.1
  • QGIS version: 3.16.2-Hannover Hannover, f1660f9da5
  • Operating System: Windows 10
  • Python version: 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)]

Description

  • Relational mode (GMLAS) scenario - Local test scenario > steps 1, 2 then directly 5
  • 'Load layer list’

RuntimeError: HTTP error code : 404

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’

  • “Load layer list’ : click

RuntimeError: HTTP error code : 404

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

  • the Layer list shall be enriched by the list of the features retrieved in the XML

Additional context

  • the XML file (raw.githubusercontent.com/BRGM/gml_application_schema_toolbox/master/tests/basic_test_scenario/3_GroundWater_Quantity_Monitoring_Facility.xml) only raises a Warning in XMLSpy (on INSPIRE xsds)
  • and the XML file is properly retrieved in XML Mode so no 404 on the file itself (nor the XSDs otherwise XMLSpy would have raised issues)
  • was also a bug on V 1.3.0

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
@sgrellet sgrellet added the bug Houston, we've a problem! label Mar 11, 2021
@Guts Guts added this to the 1.3.2 milestone Mar 12, 2021
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

2 participants