<div dir="ltr">Hi all,<br><br>In our WMS server, I would like to advertise two different styles :<br><ul><li>1st style based on mapfile definition : 'default'</li><li>2nd style based on SLD definition : 'sldStyle'</li></ul><br>I would like to offer clients a way to  select which style they want to apply, using the WMS "STYLE" parameter :<br><a href="http://localhost/qgisserverxxx?SERVICE=WMS&REQUEST=GetMap&STYLE=sldStyle">http://localhost/qgisserverxxx?SERVICE=WMS&REQUEST=GetMap&STYLE=sldStyle</a><br><br>I have tried to use CLASSGROUP, NAME and GROUP keywords. My main file looks like :<br>LAYER<br>   ...<br>   CLASSGROUP "MyVectors"<br>   ...<br>   # Mapfile definition<br>   CLASS<br>      NAME 'Name1'<br>      GROUP 'default'<br>   <br>      STYLE<br>         ...<br>      END<br>      LABEL<br>         ...<br>      END<br>   END # CLASS<br><br>   #SLD definition<br>   STYLEITEM "sld://SldDefinition.sld<br>END<br><br>My question is :<br>How do I declare different styling groups within SLD definition ? The CLASS / NAME keyword is not appropriate.<br><br>In the Mapserver documentation, I found two SLD keywords which could give a style name :<br><ul><li><NamedLayer>/<NamedStyle>/<Name></li><li><NamedLayer>/<UserStyle>/<se:Name></li></ul>Which one should I use ?<br><br><StyledLayerDescriptor version="1.1.0" ...><br>   <NamedLayer><br>      <se:Name>landsat</se:Name><br>      <NamedStyle><br>         <Name>sldStyle</Name> <====== this one ?<br>      </NamedStyle><br>      <UserStyle><br>         <se:Name>sldStyle</se:Name> <==== or this one ?<br>         <se:FeatureTypeStyle><br>            ...<br>         </se:FeatureTypeStyle><br>      </UserStyle><br>   </NamedLayer><br></StyledLayerDescriptor><br><br><div>Thanks for your help</div><div>Philippe</div></div>
<font style="font-size: 9px;">The information in this e-mail is confidential. The contents may not be disclosed or used by anyone other than the addressee. Access to this e-mail by anyone else is unauthorised.<br>If you are not the intended recipient, please notify Airbus immediately and delete this e-mail.<br>Airbus cannot accept any responsibility for the accuracy or completeness of this e-mail as it has been sent over public networks. If you have any concerns over the content of this message or its Accuracy or Integrity, please contact Airbus immediately.<br>All outgoing e-mails from Airbus are checked using regularly updated virus scanning software but you should take whatever measures you deem to be appropriate to ensure that this message and any attachments are virus free.</font>