Skip to content
Permalink
Browse files
each band must get unique name
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6060 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
rblazek committed Nov 8, 2006
1 parent 9262b3c commit 96273782d39c20c4a9b5b2cfa098586ccd5b21ac
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/raster/qgsrasterlayer.cpp
@@ -608,8 +608,8 @@ QgsRasterLayer::readFile( QString const & fileName )
GDALRasterBand *myGdalBand = gdalDataset->GetRasterBand(i);
QString myColorQString = GDALGetColorInterpretationName(myGdalBand->GetColorInterpretation());
QgsRasterBandStats myRasterBandStats;
myRasterBandStats.bandName = myColorQString ;
//myRasterBandStats.bandName=QString::number(i) + " : " + myColorQString;
//myRasterBandStats.bandName = myColorQString ;
myRasterBandStats.bandName=QString::number(i) + " : " + myColorQString;
myRasterBandStats.bandNoInt = i;
myRasterBandStats.statsGatheredFlag = false;
myRasterBandStats.histogramVector = new QgsRasterBandStats::HistogramVector();

0 comments on commit 9627378

Please sign in to comment.