Thanks Andrea, that actually does seem to work.  So I could proceed with
that, but it sounds like you are both recommending better use of the
parameters to improve performance.  I'm not sure I totally follow that yet,
but and doing some experimentation now.

By the way on my previous xml snippet - that must have been copied from an
older version... I have already discovered that the matchcase="true"
attribute messes things up.  I have not been using that lately.


On Fri, Jul 12, 2013 at 8:50 AM, Andrea Aime
<[email protected]>wrote:

> On Fri, Jul 12, 2013 at 3:50 AM, Jody Garnett <[email protected]>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
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to