Thanks David,
Seems to be the place I was looking for.
have you an example where a label could be discarded before that method is
called ?
Michaël
_____
De : David Winslow [mailto:[email protected]]
Envoyé : vendredi 10 août 2012 16:10
À : Michaël Michaud
Cc : [email protected]
Objet : Re: [Geoserver-users] Label placement evaluation
I don't believe this information is logged. The labeling engine lives in
"gt-render", a module of GeoTools. The sources are here:
https://github.com/geotools/geotools/tree/master/modules/library/render
I think that the paintLabels method in the LabelCacheImpl class would be a
good place to start looking to implement this feature, but it may be the
case that candidate labels are already discarded before that method gets
called.
https://github.com/geotools/geotools/blob/master/modules/library/render/src/
main/java/org/geotools/renderer/label/LabelCacheImpl.java#L533
--
David Winslow
OpenGeo - http://opengeo.org/
On Fri, Aug 10, 2012 at 4:11 AM, Michaël Michaud <[email protected]>
wrote:
Hi,
We use geoserver in a large project and try to get the best from its label
placement options.
Results are quite good, but we miss a way to evaluate how many labels (and
if possible
which ones) are finally shown / hidden by the default conflictResolution
option.
Is there a way to log this information or to evaluate how many labels are
lost ?
If not, can someone give a hint about where in the source code the overlap
test and the
decision to render a conflicting label is taken ?
Thanks,
Michaël
----------------------------------------------------------------------------
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users