Access information to add a WMS Legend
When adding a WMS layer NOT from capabilities, the information that would automatically be received from the capabilities document will need adding manually.
Firstly to use a legend you need to have a theme set on your layer in the SWD being served out as a WMS. Then to attain information on this legend, navigate to the capabilities document in your GeognoSIS Manager:
In the capabilities document, you will find a Legend URL section that looks similar to the following:
<LegendURL height="95" width="111"> <Format>image/png</Format> <OnlineResource xlink:href="http://[MachineNameOrIPAdress:Port]/OgcService/WMS.impl? service=WMS&version=1.3.0&request=GetLegend&layers=[OverlayName]" xlink:type="simple" xmlns:xlink="http://www.w3.org/1999/xlink" /> </LegendURL>
From this you can ascertain the Legend Image Width, Legend Image Height and the LegendURL (displayed above in red).
Send comments on this topic.