Color Interpretation band problem
Norman Barker
nbarker at RSINC.COM
Mon May 23 13:26:01 PDT 2005
Hi,
I have a problem with the way that GDAL interprets the colour interpretation of a TIF file.
If the colour interpretation is RGBA e.g
Band 1 Block=320x1 Type=Float32, ColorInterp=Red
Band 2 Block=320x1 Type=Float32, ColorInterp=Green
Band 3 Block=320x1 Type=Float32, ColorInterp=Blue
Band 4 Block=320x1 Type=Float32, ColorInterp=Alpha
then everything works fine and (in my case) all 27 bands are returned with the correct data in
each band
If, however, the color interpretation is Gray, e.g.
Band 1 Block=96x8 Type=Float32, ColorInterp=Gray
Band 2 Block=96x8 Type=Float32, ColorInterp=Undefined
Band 3 Block=96x8 Type=Float32, ColorInterp=Undefined
Band 4 Block=96x8 Type=Float32, ColorInterp=Undefined
Then the first band is returned ok, but the rest of the bands are blank!
I can't easily change the colour mode of my tif files (I am using JAI), does anyone know a workaround,
I have to serve the tifs as Float32
Thanks,
Norman Barker
More information about the MapServer-users
mailing list