error handling TIFF image

Eduardo Patto Kanegae lists at WEBMAPIT.COM.BR
Wed Dec 1 09:10:13 PST 2004


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. *

===> My MapFile:
MAP
        EXTENT          192876.831 7582480.866 269776.831 7655720.866
        IMAGETYPE       png
        SIZE            800 600

        LAYER
                DATA    "/local/spot_images/5_713393_20030615_131948_2J.tif"
                NAME    "spot"
                STATUS  DEFAULT
                TYPE    RASTER
        END

END

===> My SPOT image ´gdalinfo´ result:
Driver: GTiff/GeoTIFF
Size is 7690, 7324
Coordinate System is:
PROJCS["SAD69 / UTM zone 23S",
    GEOGCS["SAD69",
        DATUM["South_American_Datum_1969",
            SPHEROID["GRS 1967",6378160,298.2471674269942,
                AUTHORITY["EPSG","7036"]],
            AUTHORITY["EPSG","6291"]],
        PRIMEM["Greenwich",0],
        UNIT["degree",0.0174532925199433],
        AUTHORITY["EPSG","4291"]],
    PROJECTION["Transverse_Mercator"],
    PARAMETER["latitude_of_origin",0],
    PARAMETER["central_meridian",-45],
    PARAMETER["scale_factor",0.9996],
    PARAMETER["false_easting",500000],
    PARAMETER["false_northing",10000000],
    UNIT["metre",1,
        AUTHORITY["EPSG","9001"]],
    AUTHORITY["EPSG","29183"]]
Origin = (192876.831462,7655720.866171)
Pixel Size = (10.00000000,-10.00000000)
Metadata:
  TIFFTAG_SOFTWARE=IMAGINE TIFF Support
Copyright 1991 - 1999 by ERDAS, Inc. All Rights Reserved
@(#)$RCSfile: etif.c $ $Revision: 1.10.1.9 $ $Date: 2003/11/13 19:25:49EST $
  TIFFTAG_XRESOLUTION=1
  TIFFTAG_YRESOLUTION=1
  TIFFTAG_RESOLUTIONUNIT=1 (unitless)
Corner Coordinates:
Upper Left  (  192876.831, 7655720.866) ( 47d57'27.30"W, 21d10'26.44"S)
Lower Left  (  192876.831, 7582480.866) ( 47d58'15.56"W, 21d50'5.47"S)
Upper Right (  269776.831, 7655720.866) ( 47d13'3.11"W, 21d11'7.24"S)
Lower Right (  269776.831, 7582480.866) ( 47d13'39.32"W, 21d50'47.66"S)
Center      (  231326.831, 7619100.866) ( 47d35'36.34"W, 21d30'38.21"S)
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


===> My MapServer dump version:
MapServer version 3.6.6 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=TTF INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=SHAPEFILE


What is wrong with my image?

and a bad detail: I can´t upgrade to a new MapServer version and can´t recompile it using features like PROJ or GDAL... I mean: I have to put this image to work using this current enviroment set!

thanks in advance.

Eduardo Patto Kanegae
http://www.webmapit.com.br
ICQ: 303747254

Treinamento em UMN MapServer - http://www.webmapit.com.br/ptbr/?menuoption=mapserver
Fórum MapServer Brasil - http://mapserver.cttmar.univali.br/forum

***Fim da Mensagem / End of Message ***



More information about the MapServer-users mailing list