Natural breaks (Jenks) classes not computed correctly from expression #28299
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
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](https://camo.githubusercontent.com/3ac386b6fd53128c669f3c35263c591fc879d8704cdbb019077eea9aa1164d01/68747470733a2f2f6973737565732e716769732e6f72672f6174746163686d656e74732f646f776e6c6f61642f31333736362f4172634d6170436f72726563744a656e6b732e706e67)
Here are the classes that QGIS computes:
![QGISIncorrectJenks.png](https://camo.githubusercontent.com/96c4dba383711c5ec3f8fa231574f2078e38f7ee5ec61c0b26ea8729c8a7845e/68747470733a2f2f6973737565732e716769732e6f72672f6174746163686d656e74732f646f776e6c6f61642f31333736372f51474953496e636f72726563744a656e6b732e706e67)
Note that the first class is value - same value. Also affects v3.2.3.
The text was updated successfully, but these errors were encountered: