Novice help with raster

Brent Wood pcreso at PCRESO.COM
Wed Oct 27 16:02:25 PDT 2004


More help wanted, please....


I have a geotiff which looks very nice colour, except when rendered bt
mapserver, when I get a grayscale image on screen.


Now that my mapfile displays the vector shapefiles OK, I'm looking at rasters.

Some background:

The vector data includes elevation contours, coastline & spot heights.

I have turned all these into a DEM (grid) & used GMT to draw a hillshade. I use
Imagemagick to turn the GMT postscript file into a tif image. As I know the
resolution of the image and the extent, it is simple to create a world file &
use gdal to turn it into a geotif.

The geotif is georeferenced well, & displays in the correct location, overlaid
with roads, rivers, etc... in both QGIS & mapserver. (Looks very pretty) In
mapserver, however, I get a grayscale image.

The geotiff is a 1024x1024 pixel image, colour depth 16.

As per the raster how-to, I have checked mapserver & gdal for gtiff support &
it seems fine. I assume if it wasn't I wouldn't even get the grayscale output.

Any suggestions as to how I can get mapserver to render it in colour?


Thanks,

  Brent Wood



More information about the MapServer-users mailing list