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

Natural breaks (Jenks) classes not computed correctly from expression #28299

Open
qgib opened this issue Nov 13, 2018 · 5 comments
Open

Natural breaks (Jenks) classes not computed correctly from expression #28299

qgib opened this issue Nov 13, 2018 · 5 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Expressions Related to the QGIS expression engine or specific expression functions Symbology Related to vector layer symbology or renderers

Comments

@qgib
Copy link
Contributor

qgib commented Nov 13, 2018

Author Name: Joshua Biagio (@roehnan)
Original Redmine Issue: 20479
Affected QGIS version: 3.4.1
Redmine category:symbology


QGIS doesn't compute the classes using Natural Breaks (Jenks) correctly. The first class only has one value and the subsequent classes are wrong.

Here are the classes as they should be computed:
ArcMapCorrectJenks.png

Here are the classes that QGIS computes:
QGISIncorrectJenks.png

Note that the first class is value - same value. Also affects v3.2.3.


@qgib
Copy link
Contributor Author

qgib commented Nov 13, 2018

Author Name: Giovanni Manghi (@gioman)


Can you attach a sample of the data?


  • status_id was changed from Open to Feedback
  • category_id was changed from Unknown to Symbology

@qgib
Copy link
Contributor Author

qgib commented Nov 13, 2018

Author Name: Joshua Biagio (@roehnan)


Giovanni Manghi wrote:

Can you attach a sample of the data?

Here is a shapefile that contains the sample data. You'll need to set the column as an expression: "Reg_Total" / "POP2000".


  • 13768 was configured as totalreg.shp.zip

@qgib
Copy link
Contributor Author

qgib commented Nov 13, 2018

Author Name: Giovanni Manghi (@gioman)


  • operating_system was changed from Windows 10 64-bit to
  • status_id was changed from Feedback to Open

@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 25, 2019
@gioman gioman added the Expressions Related to the QGIS expression engine or specific expression functions label Jan 31, 2021
@gioman
Copy link
Contributor

gioman commented Jan 31, 2021

Still true on the latest master.

@Pedro-Murteira
Copy link

Can still replicate this issue on QGIS 3.16.14 and 3.22.1.

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! Expressions Related to the QGIS expression engine or specific expression functions Symbology Related to vector layer symbology or renderers
Projects
None yet
Development

No branches or pull requests

3 participants