Terraserver WMS

Ed McNierney ed at TOPOZONE.COM
Wed Jan 18 13:57:54 PST 2006


Chip -

Are you certain that's the map file you're really using for the request
that produces that error?  The error message refers to a layer named
"ortho-18", and your map file has no layer of that name.

The Microsoft TerraServer WMS services do not support GIF image requests
- the only image type supported is JPEG.  Be sure to check the
GetCapabilities document carefully so you don't request things the
server can't provide.

Your EXTENT seems to indicate that you want the output map to be in some
sort of "geographic" projection, but you do not have a PROJECTION block
in your map file to specify the output projection you want.  If you use
this technique you should realize that you will have problems at UTM
zone edges, as the TerraServer UTM layers will not match properly at
zone boundaries.

	- 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 Chip Taylor
Sent: Wednesday, January 18, 2006 4:18 PM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: [UMN_MAPSERVER-USERS] Terraserver WMS

I am trying to create a group of layers using WMS on Microsoft
Terraserver.

I run MapServer on an IIS6 web site as a CGI app.
I cannot seem to get this to work correctly.  Here is my Mapfile (at
least the pertinent sections:


# This is the site map file
NAME "sitemap"
UNITS DD
EXTENT -127.00 43.00 -115.00 50.00
SIZE 475 475
IMAGECOLOR 189 202 222
IMAGETYPE GIF

SHAPEPATH "../Shape_Files"
FONTSET "../fontset.txt"

#####################################
# Web object
#
WEB
     TEMPLATE "../HTML_Files/sitemap_eval.html"
    
     IMAGEPATH 'd:/wwwroot/tmp/'
     IMAGEURL "/tmp/"
END


#####################################
# TerraServer WMS
#
 LAYER
     NAME "TSOrtho1"
     METADATA
        "wms_title" "USGS Digital Ortho-Quadrangles"
        "wms_server_version"  "1.1.1"
        "wms_formatlist"      "image/gif"
        "wms_format"          "image/gif"
	"wms_name"            "DOQ"
	"wms_srs"   "EPSG:26918" #NAD83 UTM zone 18N
        "wms_extent" "-78 0 -72 90"
     END
     OFFSITE 255 255 255
     GROUP "ORTHODATA"
     STATUS DEFAULT
     TYPE RASTER
     MINSCALE 1500
     MAXSCALE 80000
     CONNECTIONTYPE WMS
     CONNECTION "http://terraservice.net/ogcmap.ashx?"
     PROJECTION
       "init=epsg:26918" #NAD83 UTM zone 18N
     END
  END

  LAYER
     NAME "TSOrtho2"
     METADATA
       "wms_title" "USGS Digital Ortho-Quadrangles"
        "wms_server_version"  "1.1.1"
        "wms_formatlist"      "image/gif"
        "wms_format"          "image/gif"
	"wms_name"            "DOQ"
       "wms_srs"   "EPSG:26917" #NAD83 UTM zone 17N\
       "wms_extent" "-84 0 -78 90"
     END
     OFFSITE 255 255 255
     GROUP "ORTHODATA"
     STATUS DEFAULT
     TYPE RASTER
     MINSCALE 1500
     MAXSCALE 80000
     CONNECTIONTYPE WMS
     CONNECTION "http://terraservice.net/ogcmap.ashx?"
     PROJECTION
       "init=epsg:26917" #NAD83 UTM zone 17N
     END
  END
  LAYER
     NAME "TSOrtho3"
     METADATA
       "wms_title" "USGS Digital Ortho-Quadrangles"
        "wms_server_version"  "1.1.1"
        "wms_formatlist"      "image/gif"
        "wms_format"          "image/gif"
	"wms_name"            "DOQ"
       "wms_srs"   "EPSG:26916" #NAD83 UTM zone 16N\
       "wms_extent" "-90 0 -84 90"
     END
     OFFSITE 255 255 255
     GROUP "ORTHODATA"
     STATUS OFF
     TYPE RASTER
     MINSCALE 1500
     MAXSCALE 80000
     CONNECTIONTYPE WMS
     CONNECTION "http://terraservice.net/ogcmap.ashx?"
     PROJECTION
       "init=epsg:26916" #NAD83 UTM zone 16N
     END
  END
  LAYER
     NAME "TSOrtho4"
     METADATA
      "wms_title" "USGS Digital Ortho-Quadrangles"
        "wms_server_version"  "1.1.1"
        "wms_formatlist"      "image/gif"
        "wms_format"          "image/gif"
	"wms_name"            "DOQ"
       "wms_srs"   "EPSG:26915" #NAD83 UTM zone 15N\
       "wms_extent" "-96 0 -90 90"
     END
     OFFSITE 255 255 255
     GROUP "ORTHODATA"
     STATUS OFF
     TYPE RASTER
     MINSCALE 1500
     MAXSCALE 80000
     CONNECTIONTYPE WMS
     CONNECTION "http://terraservice.net/ogcmap.ashx"
     PROJECTION
       "init=epsg:26915" #NAD83 UTM zone 15N
     END
  END
  LAYER
     NAME "TSOrtho5"
     METADATA
       "wms_title" "USGS Digital Ortho-Quadrangles"
        "wms_server_version"  "1.1.1"
        "wms_formatlist"      "image/gif"
        "wms_format"          "image/gif"
	"wms_name"            "DOQ"
       "wms_srs"   "EPSG:26914" #NAD83 UTM zone 14N\
       "wms_extent" "-102 0 -96 90"
     END
     OFFSITE 255 255 255
     GROUP "ORTHODATA"
     STATUS OFF
     TYPE RASTER
     MINSCALE 1500
     MAXSCALE 80000
     CONNECTIONTYPE WMS
     CONNECTION "http://terraservice.net/ogcmap.ashx?"
     PROJECTION
       "init=epsg:26914" #NAD83 UTM zone 14N
     END
  END
 END

Here is the error I get when I try to render the map:

msDrawMap(): WMS connection error. Failed to draw WMS layer named
'ortho-18'. This most likely happened because the remote WMS server
returned an invalid image, and XML exception or another unexpected
result in response to the GetMap request. Also check and make sure that
the layer's connection URL is valid. 
msDrawRaster(): Image handling error. Unrecognized or unsupported image
format
drawEPP(): Image handling error. EPPL7 support is not available.

What am I doing wrong?  Thanks in advance for your help.

Chip Taylor
Prepared Response, Inc



More information about the MapServer-users mailing list