I only can say for sure that the xxx_n functions where n corresponds to the 
number of arguments is due to the Filter spec requiring a fixed number of 
arguments for a given function name, so that's what David implemented.

Since it is generated we should ask David to get the function classes out and 
instead create a maven plugin to generate them at build time?


On Friday 11 August 2006 10:41, Andrea Aime wrote:
> 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

-- 
Gabriel Roldán ([EMAIL PROTECTED])
Axios Engineering (http://www.axios.es)
Tel. +34 944 41 63 84
Fax. +34 944 41 64 90

-------------------------------------------------------------------------
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

Reply via email to