Opened 16 years ago
Closed 15 years ago
#983 closed bug (fixed)
"Graduated Symbol" symbology: wrong numeric ranges
Reported by: | msieczka | Owned by: | nobody |
---|---|---|---|
Priority: | major: does not work as expected | Milestone: | Version 1.0.3 |
Component: | Symbology | Version: | Trunk |
Keywords: | Cc: | ||
Must Fix for Release: | Yes | Platform: | All |
Platform Version: | Awaiting user input: | no |
Description
There are following values in the numeric column of a vector layer: 0, 1, 2, 3.
Go to Layer Properties > Symbology > Graduated Symbol to build a legend for it.
If the number of classes is 1, QGIS creates the range as "0.999 - 3.001". Why is 0 omitted and why is max grater than 3? The range should be "0 - 3".
For 2 classes I get: "0.999 - 2.000" and "2.000 - 3.001". Besides wrong min and max like above, I think that "2.000" should not be included in both ranges. Moreover, as the input are integer numbers, decimal numbers should not be present - they suggest different numeric precision than the input data actually have.
Attachments (1)
Change History (9)
follow-up: 2 comment:1 by , 16 years ago
Awaiting user input: | set |
---|
comment:2 by , 16 years ago
Replying to jef:
what data source does this apply to?
I tried PostGIS and Shapefile - the bug applies to both.
Check with the attached Shapefile first, then after importing it into PostGIS (thanks for fixing SPIT!!!). You should be a ble to reproduce the bug with either data source.
comment:3 by , 16 years ago
Awaiting user input: | unset |
---|
comment:4 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Tested in SVN trunk r9470 and graduations run from -0.001 to +4.001. Works for me, I'm closing this ticket, please reopen if problems persist.
comment:5 by , 15 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
This bug is only partialy fixed.
The attached Shapefile has the following values in the floating point column 'nmb': 0.0, 1.0, 2.0, 3.0.
Try to classify it with "graduated symbol", one class - the data range according to QGIS is '-0.001 - 4.001'. This exceeds the actual data range which is '0 - 4'.
comment:6 by , 15 years ago
Milestone: | Version 1.0.0 → Version 1.0.1 |
---|
comment:7 by , 15 years ago
Tested now on QGIS 1.2 (rev. 10988) with the provided shapefile (one column, "nmb", with values 0,1,2,3,4).
with 1 classes and "mode" is "quantiles" qgis creates the range "0.000000 - 4.000000"
with 1 classes and "mode" is "equal interval" qgis creates the range "-0.001 - 4.001"
with 2 classes and "mode" is "quantiles" qgis creates the ranges "0.000000 - 2.000000" and "2.000000 - 4.000000"
with 2 classes and "mode" is "equal interval" qgis creates the ranges "-0.001 - 2.000" and "2.000 - 4.001"
I'm not sure the problem has been solved.
what data source does this apply to?