Problem with WMS Connection

Ed McNierney ed at TOPOZONE.COM
Fri Feb 24 10:29:39 EST 2006


Dennis -

I've got two quick thoughts:

1. Are you sure the server's up?  Can you get a response by typing a WMS
request in your browser?

2. The CONNECTION string (the WMS resource name) should end in a "?" or
a "&" - you should have ampersands at the end of yours.

	- Ed

Ed McNierney
President and Chief Mapmaker
TopoZone.com / Maps a la carte, Inc.
73 Princeton Street, Suite 305
North Chelmsford, MA  01863
ed at topozone.com
(978) 251-4242 

-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
Behalf Of Dennis Megarry
Sent: Friday, February 24, 2006 10:16 AM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: [UMN_MAPSERVER-USERS] Problem with WMS Connection

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/p
ng&
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/p
ng&
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