[mapserver-users] GetCoverage and palette Geotiffs

Frank Warmerdam warmerdam at pobox.com
Mon Oct 27 14:43:26 EDT 2008


Alexander Petkov wrote:
> Would it be possible to preserve the original data in an image (number
> of bands, and Type, and color interp) in the result of a GetCoverage
> request? For example, I serve Paletted  Geotiffs through mapserver:
...
> Any hopes of being able to preserve the orig data after a GetCoverage request?

Alex,

The original pixel values can be preserved by picking an IMAGEMODE BYTE
outputformat, but unfortunately that will currently discard the palette.

Basically there are two major rendering paths involved here. One is a
map view oriented one (GD'ish renders - IMAGEMODE RGB, RGBA or PC256) and
the other is a raw data oriented path (GDAL'ish renders - IMAGEMODE BYTE,
INT16 and FLOAT32).

We could look at trying to preserve palettes and possible some other stuff
in the "raw data" case but I'm not terrible keen on doing this.

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