Dear All<br><br>Please ignore this question below it was a real PICNIC (Problem In Chair Not In Computer) - I had STATUS DEFAULT in my .map file so when those LAYERS were specified in the SLD they then got styled (they have no style in the .map)<br>
<br>Although I&#39;ve been using MapServer for over 6 years my only excuse could be the time of day i.e. late one evening.<br><br>- just to CONFIRM - MapServer works as expected with SLD (and very nice too!)<br><br>Thanks<br>
Mike<br><br><div class="gmail_quote">On 30 May 2011 23:22, Mike Saunt <span dir="ltr">&lt;<a href="mailto:mikesaunt@gmail.com">mikesaunt@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi All<br><br>Wondering if anyone knows if this is correct or not.  I&#39;m using MapServer 5.6.6 on Windows.<br>
<br>I have a WMS where I specify an SLD for a layer - say called A (the SLD has a NamedLayer entry for that layer A) - and in the URL I specify the SLD path and also the layers that I want - let&#39;s say A, B - everything is great.<br>

<br>The issue (or feature!) that arises is that if I leave the SLD in the URL and DON&#39;T specify layer A (but do specify say B) I still get A coming through on the Map - is it because it has a NamedLayer entry in the SLD file. <br>

<br>This causes an issue for us as we&#39;re starting to use SLD&#39;s more and more and are trying to avoid rewrite the SLD on the server if we turn a layer on or off - I&#39;d have thought the LAYERS parameter would handle this as it does for every other type of request to MapServer.<br>

<br>Hopefully this makes sense - anyone have any clues?<br><br>Thanks<br><font color="#888888">Mike<br><br><br>
</font></blockquote></div><br>