[Mapserver-users] TIF displays in grayscale

Balkanu GIS gis at balkanu.com.au
Thu Apr 1 19:55:16 EST 2004


Hi all,

I'm using MapLab 2.1rc3 with MapServer 4.x (as part of ms4w) on Windows
2000, SP4. 

I've successfully created a WLD file to display a TIF raster file (yay!) -
however when the raster is displayed the entire map (not only the raster,
but all other layers as well) is rendered in grayscale. 

I notice in the MapLab documentation it says that MapServer's built-in
support for TIF does not include support for "tiled, 16bit, RGB, or odd
color models". Could this be why it is not displaying in colour? When I
converted the image from JPG (which it was originally) to TIF, I saved it
from PhotoShop in 8-bit CMYK. I don't know what constitutes an 'odd colour
model'.

Is there perhaps a Style Object I need to include? The Class Object is
essentially empty, as you can see in the relevant mapfile snippet below. I'm
afraid I'm still not terribly clued up on the application of Classes to
other Objects.

-----
  LAYER
    NAME "250k raster"
    GROUP "Raster - topographic"
    STATUS ON
    DATA "../../../../Documents and Settings/All Users/Data/Tables
(MI)/Rasters/Topo_250k/Sd5513.tif"
    TYPE RASTER
    UNITS DD
    SIZEUNITS PIXELS
    CLASS
      NAME "Cooktown"
      MAXSCALE 500000
    END
-----

Thanks for any suggestions

Yuri Banens






More information about the mapserver-users mailing list