Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Graduated Symbol" symbology: wrong numeric ranges #11042

Closed
qgib opened this issue Mar 9, 2008 · 6 comments
Closed

"Graduated Symbol" symbology: wrong numeric ranges #11042

qgib opened this issue Mar 9, 2008 · 6 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Symbology Related to vector layer symbology or renderers
Milestone

Comments

@qgib
Copy link
Contributor

qgib commented Mar 9, 2008

Author Name: Maciej Sieczka - (Maciej Sieczka -)
Original Redmine Issue: 983

Redmine category:symbology
Assignee: nobody -


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.


@qgib
Copy link
Contributor Author

qgib commented Mar 28, 2008

Author Name: Jürgen Fischer (@jef-n)


what data source does this apply to?

@qgib
Copy link
Contributor Author

qgib commented Mar 28, 2008

Author Name: Maciej Sieczka - (Maciej Sieczka -)


Replying to [comment:1 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.

@qgib
Copy link
Contributor Author

qgib commented Oct 10, 2008

Author Name: Tim Sutton (Tim Sutton)


Tested in SVN trunk f5a0a4c (SVN r9471) and graduations run from -0.001 to +4.001. Works for me, I'm closing this ticket, please reopen if problems persist.


  • status_id was changed from Open to Closed
  • resolution was changed from to fixed

@qgib
Copy link
Contributor Author

qgib commented Dec 21, 2008

Author Name: Maciej Sieczka - (Maciej Sieczka -)


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'.


  • status_id was changed from Closed to Feedback
  • resolution was changed from fixed to

@qgib
Copy link
Contributor Author

qgib commented Jun 29, 2009

Author Name: Giovanni Manghi (@gioman)


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.

@qgib
Copy link
Contributor Author

qgib commented Jun 30, 2009

Author Name: Marco Hugentobler (@mhugent)


Fixed in 6a9ae8f (SVN r10990)


  • resolution was changed from to fixed
  • status_id was changed from Feedback to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Symbology Related to vector layer symbology or renderers labels May 24, 2019
@qgib qgib added this to the Version 1.0.3 milestone May 24, 2019
@qgib qgib closed this as completed May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Symbology Related to vector layer symbology or renderers
Projects
None yet
Development

No branches or pull requests

1 participant