[Mapserver-users] Error Displaying Rasters

Sean Kleinjung sean at satshot.com
Sun Mar 7 23:13:04 EST 2004


Hello,

We have been using an ancient version of MapServer (3.2) to run a number
of websites. We are finally getting around to building a site using a
new version (4.0.1) of MapServer, but have run into a snag getting
raster data to display.

We've upgraded our mapfiles and have gotten the query and display of
ESRI shapefiles to work fine, but adding any raster layers to the
mapfile causes the server to return an internal server error. I have
tried both using tiled raster layers, and the simple case of just
including a layer with the data pointing to an image file (as described
in the Raster HOWTO).

Enclosed at the end of this message is a stripped down mapfile with just
a single raster layer. The .tif file I am referencing is a GeoTIFF and
the supplied projection information is correct. It is an 8-bit image
that displays fine under the systems running MapServer 3.2.

The output of mapserv -v is as follows:

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=TIFF INPUT=EPPL7
INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE

and here is gdal-config --formats:

gxf gtiff hfa aigrid aaigrid ceos ceos2 iso8211 bsb xpm sdts raw dted
mem jdem envisat elas fit vrt usgsdem l1b nitf bmp jpeg2000 gif jpeg png

Any hints as to what may be going wrong would be greatly appreciated.

Thank you,
Sean Kleinjung
Web Application Developer
Agri ImaGIS Technologies, Inc.
sean at satshot.com

Sample map file follows:


# MapFile automatically generated by
# Agri ImaGIS Technologies, Inc. jWebMap

NAME "jWebMap-1078716933050"
STATUS ON
SIZE 400 400

EXTENT 515000.0 5110000.0 840000.0 5440000.0

IMAGECOLOR 255 255 255

PROJECTION
  "proj=utm"
  "zone=14"
  "ellps=GRS80"
END

WEB
  TEMPLATE "/home/httpd/html/webmap/templates/1078716933035.html"
END

LAYER
  NAME "testRaster"
  TYPE RASTER
  STATUS DEFAULT
  DATA "/data/imagery/2003/L3026z14_Aug25_03.tif"
  PROJECTION
    "proj=utm"
    "zone=14"
    "ellps=GRS80"
  END
END

END






More information about the mapserver-users mailing list