<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.Shkpostityyli17
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
p.first, li.first, div.first
        {mso-style-name:first;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
p.last, li.last, div.last
        {mso-style-name:last;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 2.0cm 70.85pt 2.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="FI" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">It never hurts to read the whole documentation
</span><span lang="EN-US" style="font-size:11.0pt;font-family:Wingdings;color:#1F497D;mso-fareast-language:EN-US">J</span><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">There is 'ows_name' 'rt_cat' in the mapfile and the manual page says also:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="first"><span lang="EN-US">Note<o:p></o:p></span></p>
<p class="last"><span lang="EN-US">Note that each of the above metadata can also be referred to as ‘ows_*’ instead of ‘wms_*’. MapServer tries the ‘wms_*’ metadata first, and if not found it tries the corresponding ‘ows_*’ name. Using this reduces the amount
 of duplication in mapfiles that support multiple OGC interfaces since “ows_*” metadata can be used almost everywhere for common metadata items shared by multiple OGC interfaces.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">-Jukka Rahkonen-<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Lähettäjä:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> mapserver-users [mailto:mapserver-users-bounces@lists.osgeo.org]
<b>Puolesta </b>thomas bonfort<br>
<b>Lähetetty:</b> 4. huhtikuuta 2016 12:16<br>
<b>Vastaanottaja:</b> pippi<br>
<b>Kopio:</b> MapserverList OSGEO<br>
<b>Aihe:</b> Re: [mapserver-users] selecting a wms layer<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">Peter,<o:p></o:p></p>
</div>
<p class="MsoNormal">It never hurts to read the documentation: <a href="http://mapserver.org/ogc/wms_client.html#mapfile-configuration" target="_blank">http://mapserver.org/ogc/wms_client.html#mapfile-configuration</a> . Namely the part where the "wms_name"
 metadata key is required and what you need.<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">--<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Thomas<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On 4 April 2016 at 10:56, pippi <<a href="mailto:p.laranci@terrasystem.it" target="_blank">p.laranci@terrasystem.it</a>> wrote:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<p class="MsoNormal">hello,<br>
<br>
I can correctly visualize a wms layer with mapserver and pmapper as:<br>
CONNECTION<br>
'<a href="http://web.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmscatasto" target="_blank">http://web.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmscatasto</a>'.<br>
<br>
If I add the &layer parameter, it still works, but no selection of the<br>
choosen layers is done (while in Qgis it is possible):<br>
CONNECTION<br>
'<a href="http://web.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmscatasto&layer=rt_cat.idcatpart.rt,rt_cat.idcatacque.rt,rt_cat.idcatstrade.rt,rt_cat.idcatfabbr.rt,rt_cat.idcatbdfog.rt" target="_blank">http://web.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmscatasto&layer=rt_cat.idcatpart.rt,rt_cat.idcatacque.rt,rt_cat.idcatstrade.rt,rt_cat.idcatfabbr.rt,rt_cat.idcatbdfog.rt</a>'<br>
<br>
Can someone give me any clue please? how can I choose just the layers that I<br>
need?<br>
<br>
<br>
this is the complete code of the layer:<br>
<br>
LAYER<br>
    NAME 'Catasto-Toscana'<br>
    GROUP "Catasto"<br>
    TYPE RASTER<br>
    DUMP true<br>
    TEMPLATE "map.html"<br>
    CONNECTIONTYPE WMS<br>
    CONNECTION<br>
'<a href="http://web.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmscatasto&layer=rt_cat.idcatpart.rt,rt_cat.idcatacque.rt,rt_cat.idcatstrade.rt,rt_cat.idcatfabbr.rt,rt_cat.idcatbdfog.rt" target="_blank">http://web.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmscatasto&layer=rt_cat.idcatpart.rt,rt_cat.idcatacque.rt,rt_cat.idcatstrade.rt,rt_cat.idcatfabbr.rt,rt_cat.idcatbdfog.rt</a>'<br>
<br>
    MAXSCALEDENOM 10000<br>
    METADATA<br>
       "DESCRIPTION" "Catastale terreni (test)"<br>
      'ows_name' 'rt_cat'<br>
      'wms_server_version' '1.1.1'   # con 1.3.0 come da metadati si blocca<br>
      'ows_srs' 'EPSG:32632'<br>
      'wms_format' 'image/png'<br>
      'wms_style' 'default'<br>
    END<br>
    STATUS OFF<br>
    TRANSPARENCY 100<br>
    PROJECTION<br>
                "init=epsg:32632"<br>
    END<br>
  END<br>
<br>
<br>
Peter<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/selecting-a-wms-layer-tp5259459.html" target="_blank">
http://osgeo-org.1560.x6.nabble.com/selecting-a-wms-layer-tp5259459.html</a><br>
Sent from the Mapserver - User mailing list archive at Nabble.com.<br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><o:p></o:p></p>
</blockquote>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</body>
</html>