Bug report #21735
WMS Client: GetFeatureInfo in JSON format doesn't display numeric attribute values
Status: | Closed | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | Alessandro Pasotti | ||
Category: | Web Services clients/WMS | ||
Affected QGIS version: | 3.7(master) | Regression?: | No |
Operating System: | All | Easy fix?: | No |
Pull Request or Patch supplied: | Yes | Resolution: | fixed/implemented |
Crashes QGIS or corrupts data: | No | Copied to github as #: | 29550 |
Description
When doing a GetFeatureInfo request on the service
https://services.geo.zg.ch/ows/Gebaeudebrueter
and choosing "feature" (application/json) as format, all numeric values are not shown. Potentially, other data types might also be affected (haven't tested boolean or other data types).
Click on a point feature and switch between the formats. Numeric attribute values (e.g. "Anzahlnistkästen", "bfs_nr", "Postleitzahl", etc.) are displayed fine in text and html format, but not when choosing JSON/Geojson as format.
Note that in HTML and Text format, numeric values are displayed, correctly, but in JSON format (Format=Feature) all numeric values are omitted.
See screenshots attached.
Here is the corresponding manual request:
https://services.geo.zg.ch/ows/Gebaeudebrueter?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetFeatureInfo&BBOX=2682488,1222987,2683185,1223726&CRS=EPSG:2056&WIDTH=899&HEIGHT=952&LAYERS=zg.geaeudebrueter&STYLES=&FORMAT=image/png&QUERY_LAYERS=zg.geaeudebrueter&INFO_FORMAT=application/json&I=312&J=362&FEATURE_COUNT=10
Associated revisions
Fix identify for WMS client with json format
Fixes #21735
History
#1 Updated by Andreas Neumann over 5 years ago
- Assignee set to Alessandro Pasotti
#2 Updated by Alessandro Pasotti over 5 years ago
- Resolution set to fixed/implemented
- Pull Request or Patch supplied changed from No to Yes
- Status changed from Open to In Progress
#3 Updated by Andreas Neumann over 5 years ago
Hi,
I tested the PR and it works fine!
Thanks a lot,
Andreas
#4 Updated by Alessandro Pasotti over 5 years ago
- Status changed from In Progress to Closed
- % Done changed from 0 to 100
Applied in changeset qgis|c87833c807aed321f06e3cb4900315952b439398.