Novice help with raster

Frank Warmerdam warmerdam at POBOX.COM
Wed Oct 27 21:39:57 EDT 2004


Brent Wood wrote:
> The geotiff is a 1024x1024 pixel image, colour depth 16.

Brent,

Just what exactly do you mean by a color depth of 16?  16 colors in a colormap
or a 16bit single band image with 64K colors?  A 16bit greyscale image that you
would like to have colors applied to?   Could you provide a tiffinfo and/or
gdalinfo report on the file in question?

MapServer doesn't have any support for applying color ramps to images.  You
could assign classes with colors for a bunch of value ranges but to get a nice
ramp you would need to do several dozen classes.   It is often better in cases
like this to pre-convert the image to 8bit externally, applying a color ramp.

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