Problem with WMS Connection

Dennis Megarry dennis at MEGARRY.COM
Fri Feb 24 07:16:14 PST 2006


I'm trying to connect to a WMS Server to display layers from it.  Been
fighting with this since Monday and its really getting the best of me.. :(

Its simply not generating an image in the tmp folder..  I can display
local data just fine, but nothing from the WMS Server..  Can someone take
a look at my map file and see of I'm mising anything?  I did change the
name of the WMS Server, my contact over there is out till monday and don't
know if he minds it being published to this list or not.

MAP
  NAME "USA1"
  STATUS ON
  #EXTENT -473466.2404 -273483.916 351932.1884 242390.102
  EXTENT -126.12 10.6589 -66.3948 63.616
  SIZE 800 500
  SHAPEPATH "./data"
  SYMBOLSET "./etc/symbols.sym"
  FONTSET "./etc/fonts.txt"
  IMAGETYPE PNG
  IMAGECOLOR 255 255 255
  UNITS METERS
  WEB
    IMAGEPATH "/tmp/"
    IMAGEURL "/tmp/"
    ERROR "error_log"
    LOG "map_log"
    METADATA
    END
  END
  PROJECTION
    "proj=lcc"
    "lat_1=38.6666666666667"
    "lat_2=33.33333333333337"
    "lat_0=0"
    "lon_0=-81.45000000000009"
    "x_0=0"
    "y_0=0"
    "ellps=GRS80"
    "datum=NAD83"
    "units=m"
    "no_defs"
  END
  OUTPUTFORMAT
    NAME "png"
    MIMETYPE "image/png"
    DRIVER "GD/PNG"
    EXTENSION "png"
    IMAGEMODE PC256
  END
  LAYER
    NAME "polygon-warning"
    STATUS ON
    TYPE RASTER
    CONNECTIONTYPE WMS
    CONNECTION "http://met.server.edu:80/cgi-bin/radar?
SERVICE=WMS&VERSION=1.1.0&LAYERS=radar&QUERY_LAYERS=radar&FORMAT=image/png&
TRANSPARENT=TRUE"
    UNITS METERS
    SIZEUNITS PIXELS
    TOLERANCE 0
    TOLERANCEUNITS PIXELS
    METADATA
      "wms_srs"    "EPSG:4269"
      "wms_onlineresource"    "http://met.server.edu:80/cgi-bin/radar?"
      "wms_latlonboundingbox"    "-126.12 10.6589 -66.3948 63.616"
      "wms_name"    "polygon-warning"
      "wms_formatlist"    "image/png image/jpeg image/wbmp application/x-
shockwave-flash text/html application/x-pdf image/tiff"
      "wms_format"    "image/png"
      "wms_boundingbox"    "EPSG:4269 -126.12 10.6589 -66.3948 63.616"
      "wms_server_version"    "1.1.0"
      "wms_title"    "polygon-warning"
    END
  END
  LAYER
    NAME "radar"
    STATUS ON
    TYPE RASTER
    CONNECTIONTYPE WMS
    CONNECTION "http://met.server.edu:80/cgi-bin/radar?
SERVICE=WMS&VERSION=1.1.0&LAYERS=radar&QUERY_LAYERS=radar&FORMAT=image/png&
TRANSPARENT=TRUE"
    UNITS METERS
    SIZEUNITS PIXELS
    TOLERANCE 0
    TOLERANCEUNITS PIXELS
    METADATA
      "wms_srs"    "EPSG:4269"
      "wms_onlineresource"    "http://met.server.edu:80/cgi-bin/radar?"
      "wms_latlonboundingbox"    "-126.12 10.6589 -66.3948 63.616"
      "wms_name"    "radar"
      "wms_format"    "image/jpeg"
      "wms_formatlist"    "image/png image/jpeg image/wbmp application/x-
shockwave-flash text/html application/x-pdf image/tiff"
      "wms_server_version"    "1.1.0"
      "wms_title"    "CONUS Radar"
    END
  END
END



More information about the MapServer-users mailing list