Problem with remote layer
Ethan Alpert
ealpert at DIGITALGLOBE.COM
Wed Nov 3 12:28:20 PST 2004
The following layer definition works for me. You needed TYPE to be
RASTER and no CLASS statement and STATUS needed to be on.
In addition you need to define a WEB object something like:
WEB
IMAGEPATH "/var/www/tmp/"
IMAGEURL "/tmp/"
END
LAYER # Hydrometric stations layer begins here
NAME 'STATIONS'
GROUP 'TEST'
OFFSITE 255 255 255
CONNECTIONTYPE WMS
CONNECTION
'http://map.ns.ec.gc.ca/mapserver/mapserv.exe?map=C:/mapserver/services/
envdat/config.map&service=WMS&version=1.0.0&request=Getmap&layers=envdat
&STYLES-&FORMAT=PNG&transparent=true'
STATUS DEFAULT
TYPE RASTER
PROJECTION
"init=epsg:4326"
END
METADATA
WMS_TITLE 'STATIONS'
WMS_GROUP_TITLE 'TEST'
END
END # Hydrometric Stations layer ends here
More information about the MapServer-users
mailing list