[Gdal-dev] r.out.gdal: SetColorInterpretation() not supported

Markus Neteler neteler at itc.it
Wed Jan 17 10:43:57 EST 2007


On Tue, Jan 16, 2007 at 01:00:30PM -0500, Frank Warmerdam wrote:
> Markus Neteler wrote:
> >Frank,
> >
> >in fact the message is right since the result does not contain
> >color (which is essentially my problem). I also tried the HFA
> >driver to no avail.
> >
> >In summary: the resulting file becomes grey scale.
> 
> Markus,
> 
> What *should* the file be?  Is it supposed to have a color table?

Frank,

yes.
 
> Generally speaking to produce a GeoTIFF file with a color table after using
> Create() to create it, you need to do the SetColorTable() *before* writing
> any raster data.

I have added some code to r.out.gdal. It seems to generate the
color rules, but insists on ColorInterp=gray. Anyway, maybe
we figure it out on the GRASS-dev list.

thanks,
Markus




More information about the Gdal-dev mailing list