Skip to content

Commit

Permalink
GDALGetCategoryNames TODO note
Browse files Browse the repository at this point in the history
  • Loading branch information
blazek committed Nov 2, 2013
1 parent 24bcec4 commit 10c62b5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/providers/gdal/qgsgdalproviderbase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ QList<QgsColorRampShader::ColorRampItem> QgsGdalProviderBase::colorTable( GDALDa
if ( myGdalColorTable )
{
QgsDebugMsg( "Color table found" );

// TODO: load category labels and use them for ColorRampItem.label once
// GDALGetCategoryNames C function is added to GDAL, see #8886
//char ** categoryNames = GDALGetCategoryNames( myGdalBand );

int myEntryCount = GDALGetColorEntryCount( myGdalColorTable );
GDALColorInterp myColorInterpretation = GDALGetRasterColorInterpretation( myGdalBand );
QgsDebugMsg( "Color Interpretation: " + QString::number(( int )myColorInterpretation ) );
Expand Down

0 comments on commit 10c62b5

Please sign in to comment.