[Mapserver-users] Trouble using Raster

Vincent Schut schut at sarvision.com
Fri Jul 18 09:35:29 EDT 2003


Hi,

you're trying to load a rgb (24 bit) image into mapserver 3.6, which does not 
support these images. Either upgrade to mapserver-4.0-dev or convert your 
imgage to 8 bit (color mapped). You dan use a program like image magick for 
that, or gdal's rgb2pct.py python script if you have python installed, which 
tries to find an optimal color table for your rgb image. I'd try to use the 
gdal tool because this will keep the geodata inside the newly produced 
pseudcolor image, which imagemagick won't.

Regards,
Vincent.

On Friday 18 July 2003 15:24, Gabriel Vieira Ferrari wrote:
> Hi listers.
>
> I would like to use the image above, but I receive this error message from
> MapServer
>
> drawTIFF(): Image handling error. Only colormapped and grayscale images are
> supported.
>
> Could some one help me ? Which changes I need to make ?
>
> The configuration of ours MS is:
> MapServer version 3.6.5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
> SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7
> INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
>
>
> Thanks.
>
> ______________________________________________________________
> [mapserver at lnciasc01 imagens]$ gdalinfo cena.tif
> Driver: GTiff/GeoTIFF
> Size is 15124, 14074
> Coordinate System is:
> PROJCS["WGS 84 / UTM zone 22S",
>     GEOGCS["WGS 84",
>         DATUM["WGS_1984",
>             SPHEROID["WGS 84",6378137,298.2572235629972,
>                 AUTHORITY["EPSG","7030"]],
>             AUTHORITY["EPSG","6326"]],
>         PRIMEM["Greenwich",0],
>         UNIT["degree",0.0174532925199433],
>         AUTHORITY["EPSG","4326"]],
>     AUTHORITY["EPSG","32722"],
>     PROJECTION["Transverse_Mercator"],
>     PARAMETER["latitude_of_origin",0],
>     PARAMETER["central_meridian",-51],
>     PARAMETER["scale_factor",0.9996],
>     PARAMETER["false_easting",500000],
>     PARAMETER["false_northing",10000000],
>     UNIT["metre",1,
>         AUTHORITY["EPSG","9001"]]]
> Origin = (606828.500000,7229042.500000)
> Pixel Size = (15.000000,-15.000000)
> Metadata:
>   TIFFTAG_SOFTWARE=ERDAS IMAGINE
> Corner Coordinates:
> ERROR 1: /usr/local/lib/libgdal.1.1.so: undefined symbol: pj_get_def
> Upper Left  (  606828.500, 7229042.500) ( 49d56'27.42"W, 25d 3'1.80"S)
> Lower Left  (  606828.500, 7017932.500) ( 49d55'25.38"W, 26d57'23.25"S)
> Upper Right (  833688.500, 7229042.500) ( 47d41'38.10"W, 25d 1'2.92"S)
> Lower Right (  833688.500, 7017932.500) ( 47d38'24.80"W, 26d55'13.95"S)
> Center      (  720258.500, 7123487.500) ( 48d47'58.68"W, 25d59'26.67"S)
> Band 1 Block=15124x1 Type=Byte, ColorInterp=Red
> Band 2 Block=15124x1 Type=Byte, ColorInterp=Green
> Band 3 Block=15124x1 Type=Byte, ColorInterp=Blue
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users

-- 
______________________________________
Vincent Schut
Sarvision B.V.
Wageningen, The Netherlands
www.sarvision.com



More information about the mapserver-users mailing list