single classed layers and GetLegendGraphic

Kralidis,Tom [Burlington] Tom.Kralidis at EC.GC.CA
Thu Nov 11 17:10:43 EST 2004


> Tom,
> 
> how does your client know how many rules a layer has, i.e. 
> how does it distinguish between single rule layers and 
> multiple rule layers, if it does not perform a GetStyles 
> request to get the rules?

It doesn't know or distinguish.  In my client's case, it merely reads
from a WMC:

- Layer/Title
-
Layer/StyleList/Style(current="1")/LegendURL/OnlineResource/@xlink:href

...and prints out a table construct like:

<table>
 <tr>
  <td><img src="SomeGetLegendGraphicRequest"></td>
  <td>SomeLayerTitle</td>
 </tr>
...
</table>

i.e. check out http://cgdi-dev.geoconnections.org/prototypes/owsview/,
and click the "legend" looking icon in the left frame above the layer
select box.  You'll see what I'm talking about.

..Tom



More information about the mapserver-dev mailing list