<div dir="ltr"><div><div>Something like this:<br>LAYER<br>
  NAME "layer1"<br>
  GROUP "mygroup"<br>
  STATUS ON<br></div>
  METADATA<br>    "<strong>wms_layer_group" "test/test2"<br></strong></div>  END<br><div><div>
END<br>
<br>
LAYER<br>
  NAME "layer2"<br>
  GROUP "mygroup"<br>
  STATUS ON<br>
  ...<br>  METADATA<br>    "<strong>wms_layer_group" "test/test2"<br></strong>  END<br>
END<br><br></div><div>LAYER<br></div><div>   NAME test2<br></div><div>END<br></div><div><br></div><div>Note that curently you should create a fake layer (test2) to call test2 to "merge" layer1 and layer2. Thomas Bonfort created last week a PR in MS to let the user to call test2 without the fake layer.<br><br>See <a href="https://github.com/mapserver/mapserver/pull/5371">https://github.com/mapserver/mapserver/pull/5371</a><br><br></div><div>Y.<br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-02-06 21:47 GMT+01:00  <span dir="ltr"><<a href="mailto:lars.schylberg@blixtmail.se" target="_blank">lars.schylberg@blixtmail.se</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div class="m_5997168877111377041iw_mail" dir="ltr">
<p style="margin:0" dir="ltr">Another way to do it, is with "<strong>wms_layer_group"<br></strong></p>
<p style="margin:0" dir="ltr">as decribed here; <a href="http://mapserver.org/ogc/wms_server.html" target="_blank">http://mapserver.org/ogc/wms_<wbr>server.html</a><br></p>But that might be a little more complicated but allows You more levels of subgroups.<br><br>Lars S.<br><br><div dir="ltr" style="font-size:13px;font-family:Lucida Console,Courier New,Courier,Monospace">-----Originalmeddelande-----<br>> Från: "Stephen Woodbridge" <<a href="mailto:woodbri@swoodbridge.com" target="_blank">woodbri@swoodbridge.com</a>><br>> Till: <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.<wbr>org</a><br>> Datum: 2017-02-06 21:34<br>> Ämne: Re: [mapserver-users] group and subgroup<div><div class="h5"><br>><br>> On 2/6/2017 3:11 PM, milad nidal wrote:<br>> > Hi,<br>> > I'd like to create a subgroup with 2 layers. is-it posible?<br>> > I tried what is menionned in the mapserver,s doc but it did not work.<br>> > something like (groupe : test and subgroup test2 with layer1 and layer 2<br>> > in the subgroup)<br>> > Thanks<br>><br>> Try this:<br>><br>> LAYER<br>>   NAME "layer1"<br>>   GROUP "mygroup"<br>>   STATUS ON<br>>   ...<br>> END<br>><br>> LAYER<br>>   NAME "layer2"<br>>   GROUP "mygroup"<br>>   STATUS ON<br>>   ...<br>> END<br>><br>> Now you can request layer "mygroup" and both layers will be activated.<br>><br>> -SteveW<br>><br>> ---<br>> This email has been checked for viruses by Avast antivirus software.<br>> <a href="https://www.avast.com/antivirus" target="_blank">https://www.avast.com/<wbr>antivirus</a><br>><br>> ______________________________<wbr>_________________<br>> mapserver-users mailing list<br>> <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.<wbr>org</a><br>> <a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/mapserver-<wbr>users</a>
</div></div></div>
<p style="margin:0" dir="ltr"><br></p>
<p style="margin:0" dir="ltr"><br></p>
<div class="m_5997168877111377041signature"><div class="m_5997168877111377041separator">--</div></div>
</div></div>

<br>______________________________<wbr>_________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.<wbr>org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/mapserver-<wbr>users</a><br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Responsable Formation et Support<br>Camptocamp France SAS<br>Savoie Technolac, BP 352<br>73377 Le Bourget du Lac, Cedex<br><br>Tel (France) : +33 4 58 48 20 43 (<span style="color:rgb(255,0,0)">new !</span>)<br>Tel (Suisse) : +41 21 619 10 43<br>Mob. : +33 6 18 75 42 21<br>Fax : 04 79 70 15 81<br><br>Mail : <a href="mailto:yves.jacolin@camptocamp.com" target="_blank">yves.jacolin@camptocamp.com</a><br><a href="http://www.camptocamp.com" target="_blank">http://www.camptocamp.com</a></div></div></div>
</div>