On Mon, Mar 14, 2011 at 4:48 PM, Steve Way <[email protected]> wrote: > Hi Andrea, > > Your right. > > It is because I have used the multi threaded approach to layer rendering > (modifying shapefile-renderer) I mentioned about last month, the > LabelCacheImpl is no longer shared between layers, but a new one created for > each layer so the control of overlapping is lost.
You can pass every renderer the same label cache, udig does it, you just need a synchronized one and a way to control externally when the labelling actually starts (e.g., have to do it manually when all the layers are rendered). See SynchronizedLabelCache in GeoTools, though I think uDig wraps/subclasses it further to avoid the labelling to start when the first layer ends painting. Cheers Andrea -- ------------------------------------------------------- Ing. Andrea Aime GeoSolutions S.A.S. Tech lead Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 962313 mob: +39 333 8128928 http://www.geo-solutions.it http://geo-solutions.blogspot.com/ http://www.youtube.com/user/GeoSolutionsIT http://www.linkedin.com/in/andreaaime http://twitter.com/geowolf ------------------------------------------------------- ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
