Hi
I’m requesting a legend with the following line:
http://srsofaioi12288:8080/geoserver/wms/GetLegendGraphic?VERSION=1.0.0&FORMAT=image/png&WIDTH=40&HEIGHT=20&STYLE=av_meta_waiting&LAYER=topp:geo_gemeinden_v
The resulting image is a green rectangle but there is no text/label at the rectangle. The sld looks like this:
<?xml version="1.0" encoding="iso-8859-1"?>
Infogrips
Infogrips
#66FF00
0.5
If I use some filters than the labes appear. Is this the correct behaviour or a bug or not a correct sld? (I’m using Geoserver 1.6.3).
regards
Stefan
Mit freundlichem Gruss
Stefan Ziegler
Leiter Aufsicht
Kanton Solothurn
Bau- und Justizdepartement
Amt für Geoinformation
Rötistrasse 4
4501 Solothurn
Telefon 032 627 75 96
Telefax 032 627 75 98
stefan.ziegler@anonymised.com
http://www.so.ch
Hi Stefan,
I believe this is the intended behavior because your style only has a single rule. If you add another rule to it, you should see the thematic legend kick in.
-Justin
Ziegler Stefan wrote:
Hi
I'm requesting a legend with the following line:
http://srsofaioi12288:8080/geoserver/wms/GetLegendGraphic?VERSION=1.0.0&FORMAT=image/png&WIDTH=40&HEIGHT=20&STYLE=av_meta_waiting&LAYER=topp:geo_gemeinden_v
The resulting image is a green rectangle but there is no text/label at the rectangle. The sld looks like this:
<?xml version="1.0" encoding="iso-8859-1"?>
<StyledLayerDescriptor version="1.0.0"
xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd"
xmlns="http://www.opengis.net/sld"
xmlns:ogc="http://www.opengis.net/ogc"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<NamedLayer>
<Name>Infogrips</Name>
<UserStyle>
<FeatureTypeStyle>
<Rule>
<Name>Infogrips</Name>
<PolygonSymbolizer>
<Fill>
<CssParameter name="fill">#66FF00</CssParameter>
<CssParameter name="fill-opacity">0.5</CssParameter>
</Fill>
</PolygonSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
If I use some filters than the labes appear. Is this the correct behaviour or a bug or not a correct sld? (I'm using Geoserver 1.6.3).
regards
Stefan
Mit freundlichem Gruss
Stefan Ziegler
Leiter Aufsicht
Kanton Solothurn
Bau- und Justizdepartement
Amt für Geoinformation
Rötistrasse 4
4501 Solothurn
Telefon 032 627 75 96
Telefax 032 627 75 98
stefan.ziegler@anonymised.com
http://www.so.ch
!DSPAM:4007,481b1d5f99021439371379!
------------------------------------------------------------------------
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
!DSPAM:4007,481b1d5f99021439371379!
------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
!DSPAM:4007,481b1d5f99021439371379!
--
Justin Deoliveira
The Open Planning Project
jdeolive@anonymised.com