[mapserver-users] Mapserver as WMS client, legend pass-through . . .
Basques, Bob (CI-StPaul)
bob.basques at ci.stpaul.mn.us
Tue Jun 12 08:12:29 PDT 2012
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120612/3455ae2a/attachment.htm>
More information about the MapServer-users
mailing list