Bug report #21735

WMS Client: GetFeatureInfo in JSON format doesn't display numeric attribute values

Added by Andreas Neumann 5 months ago. Updated 4 months ago.

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

GetFeatureInfo_text.png - GeFeatureInfo result as text/plain (49.8 KB) Andreas Neumann, 2019-04-02 02:19 PM

GetFeatureInfo_json.png - GetFeatureInfo result as application/json (57.9 KB) Andreas Neumann, 2019-04-02 02:19 PM

Associated revisions

Revision c87833c8
Added by Alessandro Pasotti 4 months ago

Fix identify for WMS client with json format

Fixes #21735

History

#1 Updated by Andreas Neumann 4 months ago

  • Assignee set to Alessandro Pasotti

#2 Updated by Alessandro Pasotti 4 months 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 4 months ago

Hi,

I tested the PR and it works fine!

Thanks a lot,
Andreas

#4 Updated by Alessandro Pasotti 4 months ago

  • Status changed from In Progress to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF