[gdal-dev] CreateCopy() Not writing ColorInterp Data

Frank Warmerdam warmerdam at pobox.com
Tue Nov 18 16:39:48 EST 2008


Tom V. wrote:
> Frank, it looks like this:
..

> Band 1 Block=1024x1024 Type=UInt16, ColorInterp=Blue
> Band 2 Block=1024x1024 Type=UInt16, ColorInterp=Green
> Band 3 Block=1024x1024 Type=UInt16, ColorInterp=Red
> Band 4 Block=1024x1024 Type=UInt16, ColorInterp=Undefined


Tom,

The GeoTIFF driver will not default to setting PHOTOMETRIC_RGB for
16bit images.  Try passing the PHOTOMETRIC=RGB creation option to the
GTiff driver CreateCopy() method to force use of RGB photometric mode.

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 gdal-dev mailing list