GDALColorInterp SDERasterBand::GetColorInterpretation() { // Only return Paletted images when SDE has a colormap. Otherwise, // just return gray, even in the instance where we have 3 or 4 band, // imagery. Let the client be smart instead of trying to do too much. if (SE_rasbandinfo_has_colormap(*poBand)) return GCI_PaletteIndex; else return GCI_GrayIndex; }
GDALColorTable* SDERasterBand::GetColorTable(void) { if (SE_rasbandinfo_has_colormap(*poBand)) { if (poColorTable == NULL) ComputeColorTable(); return poColorTable; } else { return NULL; } }