Skip to content
Permalink
Browse files

GDALGetCategoryNames TODO note

  • Loading branch information
blazek committed Nov 2, 2013
1 parent 24bcec4 commit 10c62b5611bdc590af0543d074e4ade209c15545
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/providers/gdal/qgsgdalproviderbase.cpp
@@ -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 ) );

0 comments on commit 10c62b5

Please sign in to comment.
You can’t perform that action at this time.