Justin Deoliveira wrote:
Hi all,
Just working on the new feature api and came across something I though
I should bring up on the list.
First off, Feature#getParent() has been deprecated and is going to die
with the coming of the new api. One of the major breakages this
introduces is in some of the aggregate function classes (Min, Max,
Average, etc...) which do this:
public Object evaluate(Feature feature) {
FeatureCollection featureCollection;
if (feature instanceof FeatureCollection) {
featureCollection = (FeatureCollection) feature;
}
else {
featureCollection = feature.getParent();
}
Please break them, I have set up the aggregate functions to work when
given a FeatureCollection. There is no way getParent was a good idea...
Jody
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel