[Gdal-dev] r.out.gdal: SetColorInterpretation() not supported
Markus Neteler
neteler at itc.it
Tue Jan 16 08:30:12 EST 2007
Hi,
for some weeks we have a nice C implementation of r.out.gdal
in GRASS, but a color table problem remains:
GRASS 6.3.cvs (spearfish60): > r.out.gdal fields out=fields.tif
ERROR 6: SetColorInterpretation() not supported for this dataset.
100%
Done!
GRASS 6.3.cvs (spearfish60): > r.info -t fields
datatype=CELL
GRASS 6.3.cvs (spearfish60): > r.info -r fields
min=1
max=63
The (probably) relevant line in the main.c file is:
/* Set color interpretation. TODO: Implement this better ... */
GDALSetRasterColorInterpretation(hBand, ((band + 3) % 4 + GCI_RedBand));
Maybe it fails on an 8 bit range?
Suggestion are welcome as colorized export is an important thing,
thanks
Markus
More information about the Gdal-dev
mailing list