[Mapserver-users] 24bit IMG turns out Greyscale

Brent Fraser bfraser at geoanalytic.com
Mon May 5 10:05:06 EDT 2003


Oliver,

  I ran across this problem in January.  If you have a CLASS defined for a
raster layer, MapServer assumes you want to classify it (examine the pixel
values) and assumes the raster is 8-bit one band instead of 24-bit.  The
result is that the first band is rendered as greyscale.

  A bug has been filed
(http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=270), and Steve Lime and
Frank Warmerdam had an email exchange on possible solutions (do a seach of
the mailing list archive for "image processing crash").  But I don't think
the problem has been solved yet.

Brent Fraser
bfraser at geoanalytic.com

----- Original Message -----
From: "Oliver Wesp" <wesp at gdv.com>
To: <mapserver-users at lists.gis.umn.edu>
Sent: Monday, May 05, 2003 6:01 AM
Subject: [Mapserver-users] 24bit IMG turns out Greyscale


Dear List,

I came across some behaviour and I don't know how to handle this one. I'm
using 24bit IMG-Files (RGB) within my mapfile that should be displayed
as  RGB in the resulting mapimage. And in fact they are displayed with
appropriate colors, as long as there is no class defined within the layer.
As soon as I define a class - although it's empty  - the image turns out
greyscale. I came across this one cause I would like to display a legend
entry for the raster image. So I was used to add

CLASS
         NAME 'Layername'
END

to the raster layers.

Here's the setup

-mapserver nightly
-gdal-cvs-030505
-gd 2.0.12

Maybe somebody is able to shed some light on this.

best regards
Oliver

--
Dipl.-Geogr. Oliver Wesp
Gesellschaft für geografische Datenverarbeitung
Binger Strasse 49-51
D-55218 Ingelheim
fon: +49 6132 714818
fax: +49 6132 714828
http: <http://www.gdv.com>www.gdv.com


_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users




More information about the mapserver-users mailing list