Feature request #21687

QGIS Server/Desktop: Configurable thousand separators per field/widget

Added by Andreas Neumann over 5 years ago. Updated over 5 years ago.

Status:Closed
Priority:Normal
Assignee:Alessandro Pasotti
Category:QGIS Server
Pull Request or Patch supplied:Yes Resolution:fixed/implemented
Easy fix?:No Copied to github as #:29503

Description

For some numeric fields thousand separator are desirable (e.g. for large numbers), but for other numeric fields, they are not desirable (e.g. a zipcode).

We would like to be able to configure per field/widget in QGIS desktop if the thousand separator is displayed (or alternatively be able to provid a format for a number) - e.g. like in https://www.postgresql.org/docs/11/functions-formatting.html

The same formatting should be used on both Desktop and server in GetFeatureInfo queries.

We want to avoid GetFeatureInfo results like in the screenshot attached.

thousand_separator.png - GetFeatureInfo result (68.9 KB) Andreas Neumann, 2019-03-28 01:59 PM

History

#1 Updated by Jürgen Fischer over 5 years ago

There currently isn't even a way to disable the thousand separators in server at all, is there? locale/showGroupSeparator is only evaluated is app, but not server. IMHO separators should be off be default and only enabled where desired.

#2 Updated by Andreas Neumann over 5 years ago

I agree. Disabling thousand separator globally would already solve our main problem. We ware not obliged to serve the thousand separators, but we need to able to disable them.

#3 Updated by Alessandro Pasotti over 5 years ago

  • Assignee set to Alessandro Pasotti

#4 Updated by Alessandro Pasotti over 5 years ago

  • Status changed from Open to In Progress
  • Category changed from Edit widget to QGIS Server
  • Resolution set to fixed/implemented
  • Pull Request or Patch supplied changed from No to Yes

#5 Updated by Alessandro Pasotti over 5 years ago

  • Status changed from In Progress to Closed

Also available in: Atom PDF