[Geoserver-devel] [JIRA] (GEOS-9023) SLDService range rules building does not follow RangedClassifier specs, breaking quantile classification

Andrea Aime created an issue

GeoServer / BugGEOS-9023

SLDService range rules building does not follow RangedClassifier specs, breaking quantile classification

Issue Type:

BugBug

Assignee:

Unassigned

Components:

sldservice

Created:

20/Nov/18 3:59 PM

Priority:

MediumMedium

Reporter:

Andrea Aime

From the RangedClassifier javadoc:

/**
 * Classifies into ranges of minimum and maximum values.
 *
 * <p>The buckets are defined such that:<br>
 * min <= x < max
 *
 * <p>So if you provide the following min/max values:<br>
 * min = {3, 6, 9}<br>
 * max = {4, 10, 30}<br>
 *
 * <p>The classify function will classify items based on:<br>
 * 3 <= x < 4<br>
 * 6 <= x < 10<br>
 * 9 <= x <= 30<br>
 *
 * @author Cory Horner, Refractions Research
 */

Instead the SLDService builds rules with “low < x <= high”, breaking the positioning of the values in the quantile classification (as the break values are normally actual values in the dataset). The result is most visible in classification over small datasets or datasets with many repeated values, less so in larger datasets.

Add Comment

Add Comment

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100095-sha1:5dbb2fe)

Atlassian logo