[Mapserver-users] Error using two terraserver WMS layers

Dylan Keon keon at nacse.org
Fri Dec 19 17:54:14 EST 2003


Hi all,

I'm getting an error when using two Terraserver WMS ortho layers:

   PHP Warning:  [MapServer Error]: msDrawMap(): Failed to draw layer
   named 'ortho-11'. in /www/test.php on line 57
   PHP Warning:  [MapServer Error]: msDrawRaster(): Unrecognized or
   unsupported image format in /www/test.php on line 57
   PHP Warning:  [MapServer Error]: drawEPP():
   /www/temp/107187187367791.img.tmp is not an EPPL
   file. in /www/test.php on line 57

My WMS layers are ortho-10 (UTM 10) and ortho-11 (UTM 11).  The error is 
always with layer ortho-11, never with ortho-10.  In addition to this 
error I'm also getting inconsistent behavior such as occasional blue 
images in place of the ortho.  Here's a summary:

* ortho-10 ON, ortho-11 ON, zoom to ortho-10, get above error
* ortho-10 ON, ortho-11 ON, zoom to ortho-11, works fine
* ortho-10 OFF, ortho-11 ON, zoom to ortho-10, get above error
* ortho-10 OFF, ortho-11 ON, zoom to ortho-11, works fine
* ortho-10 ON, ortho-11 OFF, zoom to ortho-10, works fine
* ortho-10 ON, ortho-11 OFF, zoom to ortho-11, get light blue image

The archives show that others have had similar problems, but there 
didn't seem to be a resolution.  Anyone have suggestions?  My mapfile is 
below.  Thanks.

--Dylan


$ ./mapserv -v
MapServer version 4.0.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ 
SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT 
SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=EPPL7 INPUT=JPEG INPUT=OGR 
INPUT=GDAL INPUT=SHAPEFILE


NAME WMS-TEST
SIZE 500 500
STATUS ON
EXTENT 202000 45000 2370000 1710000 #minx miny maxx maxy
UNITS FEET
SHAPEPATH "/a1/data/oregon"

WEB
   IMAGEPATH "/www/temp/"
   IMAGEURL "/temp/"
END
 

#IMAGETYPE png8
IMAGETYPE png24

OUTPUTFORMAT
   NAME png8
   DRIVER "GD/PNG"
   MIMETYPE "image/png"
   IMAGEMODE PC256
END
OUTPUTFORMAT
   NAME png24
   DRIVER "GD/PNG"
   MIMETYPE "image/png"
   IMAGEMODE RGB
END

PROJECTION
   "proj=lcc"
   "datum=NAD83"
   "units=ft"
   "lon_0=-120.5"
   "lat_0=41.75"
   "lat_1=43"
   "lat_2=45.5"
   "x_0=400000"
   "y_0=0"
END

LAYER
   NAME ortho-10
   GROUP ortho
   METADATA
     "wms_title" "USGS Digital Ortho-Quadrangles"
     "wms_srs"   "EPSG:26910" #NAD83 UTM zone 10N
     "wms_extent" "-124 0 -120 90"
   END
   STATUS ON
   TYPE RASTER
   OFFSITE 255 255 255 #mask terraserver's white boundary
   MINSCALE 1500
   MAXSCALE 100000
   CONNECTIONTYPE WMS
   CONNECTION 
"http://terraservice.net/ogcmap.ashx?VERSION=1.1.1&SERVICE=wms&LAYERS=DOQ&FORMAT=jpeg&styles="
   PROJECTION
     "init=epsg:26910" #NAD83 UTM zone 10N
   END
END
 

LAYER
   NAME ortho-11
   GROUP ortho
   METADATA
     "wms_title" "USGS Digital Ortho-Quadrangles"
     "wms_srs"   "EPSG:26911" #NAD83 UTM zone 11N
     "wms_extent" "-118 0 -114 90"
   END
   STATUS ON
   TYPE RASTER
   OFFSITE 255 255 255 #mask terraserver's white boundary
   MINSCALE 1500
   MAXSCALE 100000
   CONNECTIONTYPE WMS
   CONNECTION 
"http://terraservice.net/ogcmap.ashx?VERSION=1.1.1&SERVICE=wms&LAYERS=DOQ&FORMAT=jpeg&styles="
   PROJECTION
     "init=epsg:26911" #NAD83 UTM zone 11N
   END
END
 
                       LAYER
   NAME quad_index_24k
   TYPE POLYGON
   DATA quad24k
   STATUS ON
   MAXSCALE 2000000
   LABELMINSCALE 50000
   CLASS
     OUTLINECOLOR 0 25 140
     COLOR -1 -1 -1
     TEXT ([MAP_NAME] [OHIOCODE])
     LABEL
       WRAP " "
       POSITION CC
       SIZE TINY
       BUFFER 50
       FORCE TRUE
       MINFEATURESIZE 35
       OUTLINECOLOR 255 255 255
     END
   END
END

LAYER
   NAME state_bnd
   TYPE POLYGON
   STATUS DEFAULT
   DATA bnd_poly
   CLASS
     OUTLINECOLOR 0 0 0
     COLOR -1 -1 -1
   END
END
 

END



More information about the mapserver-users mailing list