Hi,

this is more for Geoserver user list... but try with this params:

&LEGEND_OPTIONS=forceLabels:off&RULE=Rule 2a

LEGEND_OPTIONS is a geoserver spesific so it probably wont work with
other wms servers, while RULE is SLD standard si it should work with
any comliant server.
http://geoserver.org/display/GEOSDOC/GetLegendGraphic+Improvements

cheers

On Tue, Dec 1, 2009 at 8:28 PM, Dragan Podvezanec
<[email protected]> wrote:
>
> Hi all.
>
> I'm trying to make custom layer switcher, with legend, because I have
> thematic map. It contains few polygon WMS layers from Geoserver. Those
> layers are same layer on GS, but filtered by attributes, so I can switch
> them on or off.
>
> What intterests me, how can I make small PNG with layer color from SLD,
> based on attributes? I tried to use GetLegendGraphic WMS request, but as I
> see, this request doesn't accept OGCFilter, so I cannot fetch color for
> single layer created with filter. I get PNG's for all layers.
>
> Is there any other workaround how to achieve this, or I will have to write
> my own SLD parser? :(
>
>
> --
> View this message in context: 
> http://n2.nabble.com/How-to-fetch-polygon-color-from-SLD-tp4095731p4095731.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> _______________________________________________
> Users mailing list
> [email protected]
> http://openlayers.org/mailman/listinfo/users
>



-- 
Ivan Grcic
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to