Bug report #10112

QGIS graduated point style rounding error

Added by Zoran Petrovic over 10 years ago. Updated over 5 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Symbology
Affected QGIS version:2.2.0 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:end of life
Crashes QGIS or corrupts data:No Copied to github as #:18578

Description

I have a strange problem in QGIS 2.2 (problem is also present in QGIS 2.1). When I add a point (shapefile) layer, apply graduated style, everything looks fine. Then I save project, reopen it, and some of the points are missing.

When I open attribute table all points are there, but some of them are not shown on the map. When I remove graduated style then all points show up on the map... Zooming, refreshing view and changing projection doesn't help.

Problem is that QGIS does wrong kind of rounding when it automatically creates equal intervals. For example, my point data ranges from 0.9999015844 to 1.0002431856. Lower interval bound in QGIS UI is set to 0.9999 and upper bound is 1.0002. After saving project and inspecting project file with notepad++, I found that actual saved values are 0.999902 (lower bound) and 1.000243 (upper bound).
This means that some point will fall out from interval and will not be shown on the map. I attached project file with data and screenshots.

QGIS-bug.zip (418 KB) Zoran Petrovic, 2014-04-24 05:02 AM

History

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

  • Category set to Symbology

#2 Updated by Giovanni Manghi over 7 years ago

  • Easy fix? set to No
  • Regression? set to No

#3 Updated by Giovanni Manghi over 5 years ago

  • Resolution set to end of life
  • Status changed from Open to Closed

Also available in: Atom PDF