[Geoserver-users] SLD: legend titel

Hi List!

How can I get labels for my legend? Geoserver does not seem to render the tags <title> or <abstract> of the <rule> objects in my SLD files. Am I not on the right track trying to alter my SLD files?

Thank you for helping!

Cheers, Albert

--
Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger01

The Rule's Title tag is the right place to set labels for the legend
(Abstract is not used in GeoServer's getLegendGraphic right now.)
However, if your style only has one rule, then the default behavior is
to render only the swatch. If you want to render the title anyway, add
a legend_options parameter to your request, like this:
http://localhost:8080/geoserver/wms?service=wms&version=1.1.0&request=getlegendgraphic&layer=sf:roads&format=image/png&legend_options=forceLabels:on

Hope this helps,
--
David Winslow
OpenGeo - http://opengeo.org/

On Sun, 2009-04-05 at 12:14 +0200, "Albert Krüger" wrote:

Hi List!

How can I get labels for my legend? Geoserver does not seem to render the tags <title> or <abstract> of the <rule> objects in my SLD files. Am I not on the right track trying to alter my SLD files?

Thank you for helping!

Cheers, Albert