Hi Christoph
Here's an example we use to label OSM roads with highway shields:
<Rule>
<Name>osm_line</Name>
<MinScaleDenominator>0</MinScaleDenominator>
<MaxScaleDenominator>48000</MaxScaleDenominator>
<TextSymbolizer>
<Label>
<ogc:PropertyName>ref</ogc:PropertyName>
</Label>
<Font>
<CssParameter
name="font-family">RijksoverheidSansText</CssParameter>
<CssParameter name="font-weight">bold</CssParameter>
<CssParameter name="font-size">10</CssParameter>
</Font>
<LabelPlacement>
<PointPlacement>
<AnchorPoint>
<AnchorPointX>0.5</AnchorPointX>
<AnchorPointY>0.5</AnchorPointY>
</AnchorPoint>
</PointPlacement>
</LabelPlacement>
<Fill>
<CssParameter name="fill">#000000</CssParameter>
</Fill>
<Graphic>
<ExternalGraphic>
<OnlineResource xlink:type="simple"
xlink:href="/home/gisuser/symbols/white.svg"/>
<Format>image/svg+xml</Format>
</ExternalGraphic>
</Graphic>
<VendorOption name="group">yes</VendorOption>
<VendorOption name="repeat">200</VendorOption>
<Priority>200</Priority>
</TextSymbolizer>
</Rule>
The VendorOptions used in this example are to control the repetition of highway
shields along the centre lines.
Regards,
Edward
> Date: Wed, 20 Feb 2013 16:22:35 +0100
> From: [email protected]
> To: [email protected]
> Subject: [Geoserver-users] SLD textsymbolizer problem
>
> Hi everyone,
>
> I have a problem with the display of graphics with the textsymbolizer tag in
> SLDs - it doesn't work in my case.
>
> As far as I understood, I can add a graphic tag to the textsymbolizer to add
> a graphic to a label
> (http://docs.geoserver.org/latest/en/user/styling/sld-reference/textsymbolizer.html)
> Apparently, the graphics tag is ignored...- can anyone give me a valid
> example of the sequence of tags? Do I need any special vendoroption or
> something?
>
> Cheers,
> Chris
>
> --
> Dipl.-Geoinf. Christoph Wosniok
>
> Bundesanstalt für Wasserbau
> Dienststelle Hamburg
> Wedeler Landstr 157
> 22559 Hamburg
> Germany
>
> +49 (0)40 / 81 908 - 352
>
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_feb
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users