Qunatile Function Problem with Single Value Buckets
---------------------------------------------------
Key: GEOT-2555
URL: http://jira.codehaus.org/browse/GEOT-2555
Project: GeoTools
Issue Type: Bug
Components: core main
Affects Versions: 2.6-M2
Environment: JRE 1.5; Windows XP
Reporter: Emily Gouge
Assignee: Jody Garnett
Attachments: QuantileFunction.patch
I'm creating Quantile breaks in uDig on a shapefile with five features numbered
1-5. Since I'm asking for 5 "bins" I'm getting one item in each bin. The
Quantile Function creates the following RangedClassifier:
1 - 1
2 - 2
3 - 3
4 - 4
5 - 5
The SLD generated from such a RangedClassifier is:
1 <= x < 1
2 <= x < 2
3 <= x < 3
4 <= x < 4
5 <= x <= 5
This means only the last feature is displayed.
This patch updates the QuantileFunction to generate a RangedClassifier that
looks like:
1 <= x < 2
2 <= x < 3
3 <= x < 4
4 <= x < 5
5 <= x <= 5
So the features are placed in the correct buckets.
This fix also required an existing test case to be updated.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel