-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
QGIS Server OGC: Display name is not provided in GetFeatureInfo json/gml response #59353
Comments
@Gustry is this a bug or a feature request? |
Oups, I didn't take take of other formats indeed. I would say it's a bug, as indeed, formats should be traited "equivalent" from each other and to have the same features when possible. Sorry for that. Original PR : #52251 |
Thanks for clarifying, do you have time to fix it or should I ? |
Sorry, I'm not building QGIS since a few months, so it makes coding in CPP a bit tricky. If you want to take it, you can. |
I guess we can limit that to json: GML has a schema. |
yeah, json is enough, thanks |
What is the bug or the crash?
If the WITH_DISPLAY_NAME parameter is included in a WMS GetFeatureInfo request, the display name is omitted from the response GeoJSON or WFS GML format. It would be included as attribute with ... name in properties object for each feature.
The displayName field is included in the text/xml response format, but the XML structure is not standardized and harder to parse with standard FE libraries (openlayers ... ).
Example of responses for GET service=WMS&request=GetFeatureInfo&INFO_FORMAT=application/json&WITH_DISPLAY_NAME=true
json 👎 no display name :
text/xml
👍Note: coordinates are just examples
Steps to reproduce the issue
WITH_DISPLAY_NAME
parameter (as documented here https://docs.qgis.org/3.34/en/docs/server_manual/services/wms.html#wms-withdisplayname)Versions
3.34.12-Prizren
Supported QGIS version
New profile
Additional context
No response
The text was updated successfully, but these errors were encountered: