All,

I have this MAPFILE which works fine for a Map image, but how do I get a WMS 
legend from the upstream WMS service?  Do I need to set up a LAYER (like) 
definition inside of a LEGEND block for a mode=legend to work downstream.  
Right now I get a blank image.

I don't see any information on the topic in this page:

http://mapserver.org/ogc/wms_client.html#mapfile-configuration

About WMS Legend pass-through . . .

Thanks

bobb


------------

MAP
      NAME 'WS_Distribution_Mains'
      SIZE 800 650
      EXTENT 593133.398829 170094.734526 593893.148973 170712.010326

      STATUS ON
      UNITS FEET
      IMAGETYPE PNG24

      PROJECTION
        "init=epsg:200068"
      END

      LAYER
            NAME "WS distribution Mains"
            TYPE RASTER
            STATUS DEFAULT
            CONNECTION 
"http://XXX.stpaul.city/ArcGIS/services/AUTOCAD/MapServer/WMSServer?";
            CONNECTIONTYPE WMS

            METADATA
                "wms_srs" "EPSG:4326"
                "wms_name" "2"
                "wms_server_version" "1.1.1"
                "wms_format" "image/png24"

            "ows_title" "0"
            "gml_include_items" "all"
            END

            PROJECTION
                "init=epsg:4326"
            END
      END #layer

    ##CONFIG "MS_ERRORFILE" "/tmp/trying2.txt"
    ##DEBUG 5

END
_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to