Hello

My first problem is that when I set ColorInterp in a VRT file it works
(gdal_info reports the colour interpretation for each band) but when I
convert to GeoTIFF the information is lost (gdal_info shows Undefined
for all but the first band).  Is that a bug or is tiff not capable of
representing it?

Also I can't set ColorInterp (or Scale, Offset, NoDataValue) in a VRT
programmatically using the code as shown in the tutorial:

 papszOptions = CSLAddNameValue(papszOptions, "subclass", "VRTRawRasterBand");
 papszOptions = CSLAddNameValue(papszOptions, "SourceFilename", "x.dat");
 papszOptions = CSLAddNameValue(papszOptions, "ByteOrder", "LSB");        // 
this WORKS
 papszOptions = CSLAddNameValue(papszOptions, "ColorInterp", "Red");      // 
this is IGNORED

Andrew
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to