I think I know what happened to you - however we should take the conversation 
to the user list. 

If your function did not reference any parameters, or if the parameters were 
literals, the SLD rendering engine has a chance to call your function once 
(rather than for each and every feature). This results in greater speed when 
rendering.

If your function is doing some processing of feature values, you will need to 
use a PropertyName expression to pass the values into your function. This 
allows your function to work in a range of situations, and indeed on non 
feature content such as a java util Map.

When rendering, the actual "feature" passed in only has non null content for 
the attributes referenced (as why request information you are not going to 
use?). One of the reasons GeoTools rendering is so fast is due to all these 
optimisations.
-- 
Jody Garnett


On Thursday, 11 July 2013 at 10:49 PM, lindsey wrote:

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

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

Reply via email to