Hi Tommaso,
    I can't think of any "ideal" solutions (others may have better 
suggestions), but below are a few ideas:
    * I'm guessing you're using the PointPlacement labelling, which with the 
large metatiling you're using should hopefully ensure only one label in any 
given large area.
    
    * You could use the (area) filter function 
(http://docs.geoserver.org/stable/en/user/filter/function_reference.html#geometric-functions)
 to dynamically calculate the area of a polygon and use this in conjunction 
with the Priority labelling 
(http://docs.geoserver.org/latest/en/user/styling/sld-reference/labeling.html#priority-labeling)
 feature to make sure the largest features are labelled.
    
    * You could create a few identical styles with different scale thresholds 
for given labels and then use a filter with the (area) function to decide which 
of the styles (and thus thresholds) any given feature should go in.
    
    * There's also the SpaceAround vendor parameter - 
http://docs.geoserver.org/latest/en/user/styling/sld-reference/labeling.html#overlapping-and-separating-labels-spacearound
    
    Cheers,
    Jonathan

---- On Mon, 25 Apr 2016 07:38:32 +0100 tommaso<[email protected]> 
wrote ---- 

Hello, I'm trying to avoid duplicate labels with Geoserver/Geowebcache. 
Using metatiling 14x14 and gutter=100 helps but does not eliminate ALL 
duplicates, so I tried the function Centroid(the_geom) in styling. 
This really eliminates all duplicate labels but has a big disadvantage: 
the labels of the polygons are shown in all zoom levels, regardless of the 
size of the polygon, also all labels of all polygons are shown always 
(this is obvious: using Centroid(the_geom) the geometries are not longer 
polygons but points). Using normal polygons labeling, the labels of small 
polygons are only shown after zooming in, when the label fit in the 
polygon. 
 
There is a workaround to avoid this side effect? Or other tricks to avoid 
duplicate labels? 
 
Thanks, Tommaso 
 
------------------------------------------------------------------------------ 
Find and fix application performance issues faster with Applications Manager 
Applications Manager provides deep performance insights into multiple tiers of 
your business applications. It resolves application problems quickly and 
reduces your MTTR. Get your free trial! 
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z 
_______________________________________________ 
Geoserver-users mailing list 
[email protected] 
https://lists.sourceforge.net/lists/listinfo/geoserver-users 





------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to