Rob,
Thanks for the quick response.
Yes, I have read the documentation and found that attribute too, however, and please keep in mind that it is only my personal opinion, it is much more like a workaround and not real a solution for my “problem”.
Ideally, it will be an extra XML attribute (a VendorOption maybe, e.g. yes) in the SLD or a REQUEST parameter e.g. (…&EXCLUDEFROMLEGEND=rule1Name,rule2Name,…,ruleNName), thus it will be more easy to use it in automated/programmatically generated solutions like mine.
Cheers,
Attila
From: Langford, Robert [mailto:Robert.Langford@…5490…]
Sent: 02 September 2013 12:37
To: Attila Berenyi; geoserver-users@lists.sourceforge.net
Subject: RE: [Geoserver-users] GetLegendGraphic - exclude SLD rule
Attila,
You can pass a scale parameter with your GetLegendGraphic request (e.g. “&SCALE=100000”), which would only return the matched rules (in this case your “Title” rule).
See here for more details: http://docs.geoserver.org/stable/en/user/services/wms/get_legend_graphic/legendgraphic.html
Regards,
Rob
From: Attila Berenyi [mailto:Attila.Berenyi@…5782…]
Sent: 02 September 2013 11:53
To: geoserver-users@lists.sourceforge.net
Subject: [Geoserver-users] GetLegendGraphic - exclude SLD rule
Hi there,
I was wondering if there is an easy way to exclude a rule from the GetLegendGraphic request?
In this particular case I have two rules with different scale denominators - one for the actual data and one for the labels - and I’d like to totally exclude the labels from the result of GetLegendGraphic.
SLD as follows:
<?xml version="1.0" encoding="ISO-8859-1"?>
Name
Title
3466752
#686868
1
0.5
Label
110000
3466752
ogc:PropertyNamelabel</ogc:PropertyName>
Arimo
8
normal
bold
0.5
0.5
0
0
1
#FFFFFF
1
#404040
Cheers,
Attila
<br>DISCLAIMER: The information contained in this communication/message from [Robert.Langford@...5490...](mailto:Robert.Langford@...5490...) sent on Mon Sep 2 12:37:26 2013 is confidential and may be legally privileged. It is intended solely for the addressee(s) [geoserver-users@lists.sourceforge.net;Attila.Berenyi@...5782...](mailto:geoserver-users@lists.sourceforge.net;Attila.Berenyi@...5782...)<br>
<br><br>
<br>Access to this message by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, or distribution of the message, or any action or omission taken by you in reliance on it, is prohibited and may be unlawful.<br>
<br>As a public body, Salford City Council may be required to disclose this email [or any response to it] under the Freedom of Information Act 2000, unless the information in it is covered by one of the exemptions in the Act. <br>
<br>Please immediately contact the sender, [Robert.Langford@...5490...](mailto:Robert.Langford@...5490...) if you have received this message in error. <br>
<br><br>
<br>For the full disclaimer please access [http://www.salford.gov.uk/e-mail](http://www.salford.gov.uk/e-mail). Thank you.<br>
|