Hi, It never hurts to read the whole documentation ☺ There is 'ows_name' 'rt_cat' in the mapfile and the manual page says also:
Note 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. -Jukka Rahkonen- Lähettäjä: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta thomas bonfort Lähetetty: 4. huhtikuuta 2016 12:16 Vastaanottaja: pippi Kopio: MapserverList OSGEO Aihe: Re: [mapserver-users] selecting a wms layer Peter, It never hurts to read the documentation: http://mapserver.org/ogc/wms_client.html#mapfile-configuration . Namely the part where the "wms_name" metadata key is required and what you need. -- Thomas On 4 April 2016 at 10:56, pippi <p.lara...@terrasystem.it<mailto:p.lara...@terrasystem.it>> wrote: hello, I can correctly visualize a wms layer with mapserver and pmapper as: CONNECTION 'http://web.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmscatasto'. If I add the &layer parameter, it still works, but no selection of the choosen layers is done (while in Qgis it is possible): CONNECTION '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' Can someone give me any clue please? how can I choose just the layers that I need? this is the complete code of the layer: LAYER NAME 'Catasto-Toscana' GROUP "Catasto" TYPE RASTER DUMP true TEMPLATE "map.html" CONNECTIONTYPE WMS CONNECTION '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' MAXSCALEDENOM 10000 METADATA "DESCRIPTION" "Catastale terreni (test)" 'ows_name' 'rt_cat' 'wms_server_version' '1.1.1' # con 1.3.0 come da metadati si blocca 'ows_srs' 'EPSG:32632' 'wms_format' 'image/png' 'wms_style' 'default' END STATUS OFF TRANSPARENCY 100 PROJECTION "init=epsg:32632" END END Peter -- View this message in context: http://osgeo-org.1560.x6.nabble.com/selecting-a-wms-layer-tp5259459.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org> http://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users