Hi, I have a follow up question on my question yesterday. I would like to have the layers in the main called mapfile to be set layers in the client WMS calls. The WMS client documentation says, http://mapserver.org/ogc/wms_client.html :
"wms_name" metadata - comma-separated list of layers to be fetched from the remote WMS server. This value is used to set the LAYERS and QUERY_LAYERS WMS URL parameters When I call the MAP_MAIN I would like to call it like this: http://localhost/cgi-bin/mapserv?map=/var/www/html/map2/MAP_MAIN.map &SERVICE=WMS&REQUEST=Getmap&VERSION=1.1.1 &LAYERS=base,marks,text&srs=EPSG:4326&BBOX=9.624750,52.33333,30.333333,66.500000 &FORMAT=application/openlayers&WIDTH=2000&HEIGHT=1100 or &LAYERS=base,text or &LAYERS=base Is the mechanism similar to the srs handling? How do I expose the layers in the wms clients map files? Right now I use GROUP to define the layers and that works when I call it directly. Or is it so that I have to expose the layers with WMS_LAYER_GROUP in the wms-server mapfiles that are called as clients? I haven't been successful with that! I have several clients with the same layer structure and one with just default. /Lars MAP NAME MAP_MAIN SIZE 1000 1000 CONFIG "PROJ_LIB" './' UNITS dd EXTENT 9.624750 52.33333 30.333333 66.500000 PROJECTION 'init=epsg:4326' END IMAGETYPE png FONTSET './fonts/fontset.lst' SYMBOLSET "./symbols/symbols.sym" OUTPUTFORMAT NAME 'AGG' DRIVER AGG/PNG IMAGEMODE RGB END SHAPEPATH ../data/shape WEB IMAGEPATH '/tmp/' IMAGEURL '/tmp/' METADATA "ows_enable_request" "*" 'wms_title' 'MAP_MAIN' 'wms_srs' 'EPSG:32633 EPSG:3006 EPSG:3857 EPSG:4326' "labelcache_map_edge_buffer" "-10" END END ############### Layer 0 as WMS request LAYER NAME "WMS-layer-0" OFFSITE 200 0 0 TYPE RASTER CONNECTIONTYPE WMS CONNECTION "http://localhost/cgi-bin/mapserv?map=/var/www/html/map0.map" METADATA 'wms_srs' 'EPSG:32633 EPSG:3006 EPSG:3857 EPSG:4326' "wms_name" "default" "wms_server_version" "1.1.1" "wms_format" "image/png" "wms_exceptions_format" "application/vnd.ogc.se_inimage" END END #layer ############### Layer 1 as WMS request LAYER NAME "WMS-layer-1" OFFSITE 200 0 0 TYPE RASTER CONNECTIONTYPE WMS CONNECTION "http://localhost/cgi-bin/mapserv?map=/var/www/html/map1.map" METADATA 'wms_srs' 'EPSG:32633 EPSG:3006 EPSG:3857 EPSG:4326' "wms_name" " base,marks,text" #??????????? "wms_server_version" "1.1.1" "wms_format" "image/png" "wms_exceptions_format" "application/vnd.ogc.se_inimage" END END #layer END # Map
_______________________________________________ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users