<div dir="ltr"><div>Peter,</div>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.<div><br></div><div>--</div><div>Thomas</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 4 April 2016 at 10:56, pippi <span dir="ltr"><<a href="mailto:p.laranci@terrasystem.it" target="_blank">p.laranci@terrasystem.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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" rel="noreferrer" 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" rel="noreferrer" 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" rel="noreferrer" 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" rel="noreferrer" 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" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a></blockquote></div><br></div>