Problem with remote layer

Ethan Alpert ealpert at DIGITALGLOBE.COM
Wed Nov 3 15:28:20 EST 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