Skip to content
Permalink
Browse files
set raster stats bandName and bandNumber, fixes one problem of #4193
…- band name can only be set to "" or "Not set".
  • Loading branch information
blazek committed Dec 18, 2011
1 parent 20ffb06 commit d848aa00103a14190586f19508f9711b82b3f44e
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/core/qgsrasterdataprovider.cpp
@@ -241,6 +241,8 @@ QgsRasterBandStats QgsRasterDataProvider::bandStatistics( int theBandNo )
double myNoDataValue = noDataValue();
QgsRasterBandStats myRasterBandStats;
myRasterBandStats.elementCount = 0; // because we'll be counting only VALID pixels later
myRasterBandStats.bandName = generateBandName( theBandNo );
myRasterBandStats.bandNumber = theBandNo;

int myDataType = dataType( theBandNo );

0 comments on commit d848aa0

Please sign in to comment.