Jody Garnett ha scritto: > Andrea Aime wrote: >> Hi all, >> I'm wondering why we do have math expression implementations such >> as FilterFunction_abs_2, FilterFunction_abs_3, FilterFunction_abs_4 >> and so >> on, all with the same executable code. Seems silly, what's the purpose >> of this? >> >> Plus, all this files say that the filter is generated... >> hum, ok, generated from what? I don't see anything relevant in the build? >> > Andrea, David Blasby has this documented on the GeoServer site .... he > wrote a code generator that also targets > databases and other things and is set up to initially to work from the > JTS abstractions.
Documented in the wrong place then, should be in the package.html, and where is the generator? > Not sure about FilterFunction_abs_x though wonder if it is a mistake? I just realized the various abs_x function do target different data types (double, float, ...) while others do handle different number of arguments. Yeah, the naming of abs_xxx is misleading thought. Better have abs_int, abs_double, abs_float. Or maybe just a single function that check what you provide to it (Float, Double, Integer) and returns the appropriate result. Cheers Andrea ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
