[Gdal-dev] Block size consistency (and SetColorInterpretation() in GTiff)

Frank Warmerdam warmerdam at pobox.com
Wed Feb 7 20:56:34 EST 2007


Ozy Sjahputera wrote:
> Thanks for the tip, Frank.
> 
> I would like to create an image with 5 bands in the order of: Pan, R, G, 
> B, NIR.
> 
> How would PHOTOMETRIC=RGB affect the band photometric interpretation?  
> Can I implement the order above using this parameter?

Ozy,

There is no way to mark the 2nd, 3rd and 4th bands as RGB in a TIFF file.
If you were to store it as Red, green, blue, pan, nir then at least
applications could use the first 3 bands as rgb if it was marked as
photometric rgb.  If you want to put Pan first, you might be better off
just treating it as greyscale (min-is-black), the default.

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    | President OSGeo, http://osgeo.org




More information about the Gdal-dev mailing list