I am very new to geoserver/geotools and filter functions, however, I have a couple simple ones that I've put together and am doing some testing on. They sit behind the geoserver wfs plugin service. As I move beyond the very simplest examples though I seem to run into some issues. Rather than go through all of those specifics though, I am wondering, first, if there is something very basic that I am misunderstanding.
Can someone verify or clarify my following understanding of the evaluate(Object feature) method (I'm extending FunctionImpl)? My assumption was that feature parameter represented one record from the datastore and that this method would be called on each record to return the value (typically true/false in my case for use with PropertyIsEqualTo) for that record. In reality though I'm seeing that the method appears to only be called once (not once per record in data store) and that the feature parameter is always null. I've also noticed that the arguments are extracted with code like this: double speed = super.getParameters().get(3).evaluate(feature,Double.class); Which succeeds despite the null value (?) and gets the proper info from my xml request. This makes me think that maybe the parameter is actually the wfs request rather than the data store record(s), but the fact that its null seems odd - and if this is the case then I'm not sure how I can access the data store/layer data. I'm sure I've missed something obvious and apologize if this question is a little too basic, but being pretty new to GIS too, I'm having a hard time finding these answers. Any help would be greatly appreciated. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Custom-Filter-Function-Getting-Started-Question-tp5065749.html Sent from the geotools-devel mailing list archive at Nabble.com. ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk _______________________________________________ GeoTools-Devel mailing list GeoTools-Devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel