Bug report #21735

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

Added by Andreas Neumann over 1 year ago. Updated over 1 year ago.

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


When doing a GetFeatureInfo request on the service


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:


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 over 1 year ago

Fix identify for WMS client with json format

Fixes #21735


#1 Updated by Andreas Neumann over 1 year ago

  • Assignee set to Alessandro Pasotti

#2 Updated by Alessandro Pasotti over 1 year 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 1 year ago


I tested the PR and it works fine!

Thanks a lot,

#4 Updated by Alessandro Pasotti over 1 year ago

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

Also available in: Atom PDF