On Fri, Jul 12, 2013 at 3:50 AM, Jody Garnett <jody.garn...@gmail.com>wrote:
> 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.
>
>
Jody's suggestion is the way to go, but if for any reason you cannot follow
it, you can also make your function implement VolatileFunction, which will
inform the rendering engine that the function output is not going to be
stable even if all its inputs are static, non visibly dependent on feature
attributes (e.g., random implements that interface)
Cheers
Andrea
--
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
information.
==
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------
------------------------------------------------------------------------------
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
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users