[gdal-dev] about SetRasterColorInterpretation

Frank Warmerdam warmerdam at pobox.com
Fri May 15 10:22:13 EDT 2009

jor sion wrote:
> Hi,
> I used the the SetRasterColorInterpretation() method to modified the 
> ColorInterpretation of a band, but it failed.
> so SetRasterColorInterpretation() doesn't work?
> If I want to modify the ColorInterpretation of a band, what should I do?


This method is not operational for very many drivers.

I see that if the PAM mechanism is enabled all PAM enabled drivers will
actually store the color interpretation in the .aux.xml file.  What version
of GDAL are you using?  What file format?

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