Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 d848aa0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/qgsrasterdataprovider.cpp
Expand Up @@ -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 );

Expand Down

0 comments on commit d848aa0

Please sign in to comment.