tiff is shown in grayscale

Frank Warmerdam warmerdam at POBOX.COM
Tue Nov 9 12:21:59 EST 2004


Carsten Keßler wrote:
> Hi,
> I'm using a number of shapes and a tiff to generate the ouput map, with
> MapServer 4.2.0 on Windows. The original tiff file is in RGB mode, with
> 8 bit per channel. The shapefiles are drawn correctly (in color), but
> the tiff is only in grayscale on the output maps. This is the part of
> the map file which defines the tiff layer:
>
>  LAYER
>    NAME basemap
>    TYPE RASTER
>    DATA rectifyos.tif
>    CLASS
>      NAME 'Basemap'
>    END
>    METADATA
>      WMS_TITLE "Basemap"
>      WMS_ABSTRACT "Basemap ..."
>      WMS_SRS "EPSG:31467"
>    END
>  END

Carsten,

The problem is that when you declare a CLASS on the raster layer it forces
the layer to be rendered in classified mode.  This uses only one band and
defaults to greyscale.

Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent



More information about the mapserver-users mailing list