[mapserver-users] selecting a wms layer
thomas bonfort
thomas.bonfort at gmail.com
Mon Apr 4 02:16:21 PDT 2016
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.laranci at 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 at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20160404/f7c0f38b/attachment.htm>
More information about the MapServer-users
mailing list