error handling TIFF image

Frank Warmerdam fwarmerdam at GMAIL.COM
Wed Dec 1 09:20:02 PST 2004


On Wed, 1 Dec 2004 15:10:13 -0200, Eduardo Patto Kanegae
<lists at webmapit.com.br> wrote:
> Hi folks,
> 
>  I have a SPOT image and I´m using MapServer 3.6.6 but I´m getting the following error message when trying to test my mapfile using "mode=map":
> 
> *drawTIFF(): Image handling error. Only colormapped and grayscale images are supported. *
...
> Band 1 Block=7690x1 Type=Byte, ColorInterp=Red
> Band 2 Block=7690x1 Type=Byte, ColorInterp=Green
> Band 3 Block=7690x1 Type=Byte, ColorInterp=Blue
> Band 4 Block=7690x1 Type=Byte, ColorInterp=Alpha

Eduardo,

Your basic problem is that the built-in TIFF support does not support
RGB or RGBA images. You need to use the GDAL link for reading
rasters if you really want to do. 

Given your stated constraints of having to stick with 3.6.6 and not
being able to re-compile with GDAL added to the mix, it seems you
will have to reprocess your image externally into a form suitable
for use with this version of mapserver. 

You can use the rgb2pct.py script distributed with GDAL to convert
an RGB image to a pseudo-colored image you can use.  

However, I can't stress enough that it will be very difficult to
get support from the community for a version of Mapserver as
antique as 3.6.6. 

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