Bug report #10974

QGIS WFS Server provides too much precision

Added by René-Luc ReLuc over 8 years ago. Updated over 8 years ago.

Assignee:René-Luc ReLuc
Category:QGIS Server
Affected QGIS version:2.4.0 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:Yes Resolution:fixed/implemented
Crashes QGIS or corrupts data:No Copied to github as #:19320


In the GetFeature request QGIS WFS Server uses the static method: QgsDoubleToString. This method returns double with a precision fixed to 17.

We do not need that much precision for coordinates. Firstly because we are not able to measure a position on earth with a lower micron precision. Secondly because it unnecessarily overload response.

I propose to add the ability to specify the precision in the QgsDoubleToString method.

Related issues

Related to QGIS Application - Feature request #9797: Add a precision setting for GetFeatureInfo geometry attri... Closed 2014-03-17


#2 Updated by René-Luc ReLuc over 8 years ago

  • Target version set to Future Release - High Priority
  • Assignee changed from Marco Hugentobler to René-Luc ReLuc

#3 Updated by René-Luc ReLuc over 8 years ago

  • File deleted (QgsDoubleToStringWithPrecision.patch)

#4 Updated by René-Luc ReLuc over 8 years ago

  • Resolution set to fixed/implemented
  • Status changed from Open to Closed
  • % Done changed from 0 to 100

Commits from pull request https://github.com/qgis/QGIS/pull/1520 has been merged

Also available in: Atom PDF