OK, I don't have it totally complete yet, but I think I see what I was misunderstanding. My thought was that literals would from the xml request filter syntax, while properties of the features in the data store/layer would come from calling getters on the feature parameter of the evaluate method. However it looks like I just need to add a couple more arguments to my filter xml, such as
<ogc:PropertyName>my-layer-field-name-here</ogc:PropertyName> Which geoserver will replace with the appropriate value each time it calls the evaluate method. This means that I will get both my literals and my layer properties through the getParameters approach. I just replaced one of my literals with one of these PropertyName references and was able to remove the VolatileFunction impl that I was using as a temporary check. It looks like the evaluate method is called multiple times with varying values. I'll post again once I manage to implement these changes and see how it all works, but I suspect this is what I was missing. Thank you both for your help - I doubt I would have found this on my own anytime soon! -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Re-Geotools-devel-Custom-Filter-Function-Getting-Started-Question-tp5065918p5066096.html Sent from the geotools-gt2-users 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-GT2-Users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
