Terraserver WMS
Chip Taylor
work at XWB.COM
Wed Jan 18 13:18:06 PST 2006
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