Hi Jody.

There's no problem for me. I can use an extension of LabelCacheDefault that does a clear() after the end method.

However, your second idea (the optional one) may be a good improvement.

Now I can understand why I'm the only one that noticed this problem ;)

Thank you.

Bye,
Manuele

in data 05/05/2008 18.44 Jody Garnett ha detto:
Thanks Manuele; I am pretty sure you found a problem ... GeoServer makes a new Renderer+LabelCache each time as far as I know; and uDig uses a single LabelCache for multiple renderers (and probably does its own clear() ).

So my question is this; should the Renderer invoke the clear() method? That conflicts with the uDig use case; where a single LabelCache is being shared by several renderer.

What we should do is:
1. Document what is going on
2. Optional: Detect when the Renderer is creating 'its own' label cache; and have it throw away or clear the result after use

Up to you if you want to report this as a bug; right now I might consider this a documentation bug (and that the software is functioning as designed).
Jody

Manuele Ventoruzzo wrote:
Hi all.

Upgrading my project to Geotools 2.4, I found a bug in Render module.

LabelCacheDefault doesn't clean the previously rendered labels because it doesn't invoke /clear /method.

I have just added it to /end /method and it works.

I have also checked on subversion to see if it has been corrected on maintrunk, but it hasn't.

Has anybody noticed this problem?

Thank you,
Manuele


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
 



--

Manuele Ventoruzzo
Over I.T. srl - Gruppo Engineering
Via Bassi 81
33080 Fiume Veneto (PN)
email: [EMAIL PROTECTED]

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to