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

Frank Warmerdam warmerdam at pobox.com
Wed Feb 7 19:21:48 EST 2007


Ozy Sjahputera wrote:
> Aha, so there is a way to set the photometric interpretation in GTiff, 
> even if this is to be done during file creation.   Yes, I just want to 
> give a simple label for the bands in the new GTiff file I created using 
> Create().
> 
> I suspect the PHOTOMETRIC=RGB will have to be set in the parameter
> 
> char **  /papszParmList
> 
> /in Create()?  Where do I set this parameter?   Where can I find more 
> details on the format of /papszParmList?/

Ozy,

It is a NULL terminated list of strings.  So something like:

   char *apszParmList[] = { "PHOTOMETRIC=RGB", NULL };

will do the trick.

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