On Fri, Jul 11, 2014 at 6:48 PM, Jonathan Moules <
[email protected]> wrote:

> Hi List,
> I'm getting some weird labelling behaviour (using GS 2.5.1).
>
> As you can see here:
>
> http://maps.warwickshire.gov.uk/gs/wms?LAYERS=z_OS_Vector_Basemap&STYLES=&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG%3A27700&BBOX=428428.71093752,264954.34570313,428618.8964844,265128.17382813&WIDTH=779&HEIGHT=712
>
> The entire large street is unlabelled. It's supposed to have two separate
> labels from two attributes of the same feature coming from one rule with
> two TextSymbolisers. One places a road number (Like the "A445" at the top)
> and the other places the road name (like the "castle hill" in the bottom
> left).
>
> But for some reason neither is appearing here. If I pan around a bit,
> sometimes one of them shows and sometimes the other one but rarely both.
> Zooming in/out has similar effects.
>
> This is what the line feature looks like (four components):
> [image: Inline images 1]
>
> I'm using these vendor options for both labels:
>             <se:VendorOption name="group">yes</se:VendorOption>
>             <se:VendorOption name="followLine">true</se:VendorOption>
>
>
> I've tried adding a "repeat" option, but that didn't seem to have the
> desired effect.
> It's no less random via a TMS (4*4 meta tiling).
>
>
> Doe anyone have any suggestions? I know labelling can be something of a
> dark art, but this one has me stumped.
>

Have you tried with:
* setting followLine to false, to see where it's trying to put the labels?
* adding maxDisplacement (
http://docs.geoserver.org/latest/en/user/styling/sld-reference/labeling.html#maxdisplacement
)

Cheers
Andrea

-- 
==
GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 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

-------------------------------------------------------
------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to