[mapserver-users] WMS Client Support
    Brian Fischer 
    bfischer at mpls.houstoneng.com
       
    Mon Jun  3 11:42:50 PDT 2002
    
    
  
Hi MapServer WMS users,
 
I am new to the WMS feature of MapServer.  I am trying to add a WMS
layer to my current mapserver application and I am not having any
success.  I have read through the WMS Client HowTo and an old posted
message
(http://mapserver.gis.umn.edu/cgi-bin/wilma_hiliter/mapserver-users/0204
/msg00314.html) and neither seem to work for me.  I am using
MapServer3.5 with WMS_Client Support.
 
When I insert the WMS layer into the map file all I see in the web
browser are my non-wms layers.  None of the WMS layers seem to show up.
I have tried two different WMS layers; one from the Geography Network as
used in the old posted message and one by DMSoultions in the WMS HowTo.
My map file is attached below.  Can anyone see any reason why the WMS
layers wouldn't be showing up in the web browser?
 
Thanks,
Brian
 
# RRBDINviewer.map
MAP
   NAME "RRBDINViewer"
   EXTENT -104.057243 42.47964 -89.179642 59.99992
   SIZE  500 400
   FONTSET "d:/rrbdin_dev/tools/mapserv35/fonts/fontset.list"
   SYMBOLSET "d:/rrbdin_dev/tools/mapserv35/symbols/symbol.sym"
   SHAPEPATH "d:/rrbdin_dev/tools/mapviewer/shapefiles/dd"
   UNITS METERS
   Projection
     "init=epsg:4326"
   END
 
 
   WEB
      IMAGEPATH "d:/rrbdin_dev/tools/mapserv35/temp_mapserv/"
      TEMPLATE rrbdinviewer.html
      MAXSCALE 7000000
   END
 
   QUERYMAP
      STATUS ON
      STYLE HILITE
      COLOR 255 255 0
   END
 
   LEGEND
      STATUS ON
      IMAGECOLOR 204 204 153
      LABEL
         TYPE TRUETYPE
         ANTIALIAS TRUE
         FONT arial
         COLOR 0 0 0
         SIZE 9
      END
   END
 
   SCALEBAR 
      STATUS ON
      INTERVALS 4
      SIZE 150 6
      OUTLINECOLOR 120 120 120
      COLOR 0 0 0
      IMAGECOLOR 204 204 153
      BACKGROUNDCOLOR 204 204 153
      STYLE 1
      UNITS MILES
      LABEL
         ANTIALIAS TRUE
         COLOR 0 0 0
         SIZE tiny
      END
   END #scalebar
 
   REFERENCE 
      STATUS ON
      EXTENT -104.057243 42.47964 -89.179642 59.99992
      IMAGE "d:/rrbdin_dev/tools/mapviewer/images/rrb_refmap.gif" 
      SIZE 150 153
      COLOR -1 -1 -1
      OUTLINECOLOR 255 0 0
   END #reference
 
 
 
LAYER
  NAME "esri"
  METADATA
            "wms_title" "ESRI - WORLD"
            "wms_srs" "epsg:4326"
            "wms_connectiontimeout" "1000"
  END
  TYPE RASTER
  STATUS ON
  CONNECTION
"http://www.geographynetwork.com/servlet/com.esri.wms.Esrimap?ServiceNam
e=ESRI_World&VERSION=1.0.0&REQUEST=map&Layers=Rivers&Format=gif"
  CONNECTIONTYPE WMS
  PROJECTION
            "init=epsg:4326"
  END
End #layer esri
 
LAYER
  NAME bathmetry
  METADATA
            "wms_title" "Elevation/Bathymetry"
            "wms_srs" "EPSG:42403 EPSG:4269 EPSG:4326"
  END
  TYPE RASTER
  STATUS ON
  CONNECTION
"http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?VERSION=1.1.0&LAYERS=bath
ymetry&FORMAT=image/gif"
  CONNECTIONTYPE WMS
  PROJECTION
            "init=epsg:4326"
  END
End #layer DmSolutions
 
LAYER 
      NAME pol_bndry
      DATA "pol_bnd"
      STATUS DEFAULT
      TYPE LINE
      PROJECTION
            "init=epsg:4326"
      END
      LABELITEM "NAME"
      LABELMINSCALE 2000000
      CLASS
         NAME "Political Boundary"
         COLOR 50 50 50
         SYMBOL 2
         LABEL
          FORCE TRUE
          SIZE 12
          COLOR 50 50 50
          OUTLINECOLOR 200 200 200
          BUFFER 4
          TYPE TRUETYPE
          FONT arial-bold
          ANTIALIAS TRUE
        END
      END
   END
 
 
LAYER
      NAME watershed
      DATA "envirocanada_wtrshd"
      STATUS DEFAULT
      TYPE LINE
      PROJECTION
            "init=epsg:4326"
      END
      CLASS
        NAME "Red River Basin"
        SYMBOL 'plainline'
        COLOR 255 0 0 
        SIZE 2
      END
END
   
 
END #map file
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20020603/38754e11/attachment.htm>
    
    
More information about the MapServer-users
mailing list