-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Bug WMS QGIS GetFeatureInfo returning entity #50981
Comments
Same error message with QGIS 3.29.0-Master (2a0fc59). |
This might well be a QGIS bug because QGIS should not request an info format which is not in getcapabilities, but shouldn't the server also respond with an exception if a request for an unsupported info format is made? |
Looks like this it not the case, the request includes The issue is here, that QGIS tries to parse the JSON response as GML. |
What is the bug or the crash?
Considering QGIS attached project (see how to reproduced part for file),
I got a parsing issue from returned content after GetFeatureInfo query using "Identify feature"
For layer "INSEE.FILOSOFI.POPULATION" named in layer tree "Densité de population", WMS URL is https://wxs.ign.fr/economie/geoportail/r/wms?VERSION=1.3.0
When you try to query as entity, it returns error like in attached image. Using the request debugger, I see QGIS does a request using INFO_FORMAT=application/json instead of one requesting GML (not available in capabilities) so, the returned entity should not be parsed as GML but as GeoJSON/JSON, hence thee issue. Below a sample of the GetFeatureInfo query in the network debugger https://wxs.ign.fr/economie/geoportail/r/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetFeatureInfo&BBOX=880288.54028120101429522,6862834.76942052692174911,889264.71626451192423701,6871157.00023245997726917&CRS=EPSG:2154&WIDTH=1153&HEIGHT=1069&LAYERS=INSEE.FILOSOFI.POPULATION&STYLES=&FORMAT=image/jpeg&QUERY_LAYERS=INSEE.FILOSOFI.POPULATION&INFO_FORMAT=application/json&I=833&J=382&FEATURE_COUNT=10
Excerpt of the GetFeatureInfo part in WMS capabilities (
curl -s "https://wxs.ign.fr/economie/geoportail/r/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities" |xmllint --format -
)Steps to reproduce the issue
Versions
Supported QGIS version
New profile
Additional context
Not running a supported version because using conda that only comes with 3.22.11 at the moment.
The text was updated successfully, but these errors were encountered: