Changeset 10906

Show
Ignore:
Timestamp:
03/09/07 08:15:16 (2 years ago)
Author:
tamas
Message:

Displaying info about the colortable

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/gdal/swig/csharp/apps/GDALInfo.cs

    r10900 r10906  
    135135                Console.WriteLine("   DataType: " + Gdal.GetDataTypeName(band.DataType)); 
    136136                Console.WriteLine("   ColorInterpretation: " + Gdal.GetColorInterpretationName(band.GetRasterColorInterpretation())); 
    137                 Console.WriteLine("   Description: " + band.GetDescription()); 
     137                ColorTable ct = band.GetRasterColorTable(); 
     138                                if (ct != null) 
     139                                        Console.WriteLine("   Band has a color table with " + ct.GetCount() + " entries."); 
     140                 
     141                                Console.WriteLine("   Description: " + band.GetDescription()); 
    138142                Console.WriteLine("   Size (" + band.XSize + "," + band.YSize + ")"); 
    139143                int BlockXSize, BlockYSize;