Skip to content

Commit

Permalink
ENH: Report correct block size (from PR review)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmichel-otb committed Jul 7, 2016
1 parent a65e6ef commit 57e607d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gdal/frmts/derived/deriveddataset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,11 @@ GDALDataset * DerivedDataset::Open(GDALOpenInfo * poOpenInfo)
GA_ReadOnly,
TRUE);
for(int j=0;j<nbBands;++j)
proxyDS->AddSrcBandDescription(poTmpDS->GetRasterBand(nBand)->GetRasterDataType(), 128, 128);
{
int blockXSize, blockYSize;
poTmpDS->GetRasterBand(nBand)->GetBlockSize(&blockXSize,&blockYSize);
proxyDS->AddSrcBandDescription(poTmpDS->GetRasterBand(nBand)->GetRasterDataType(), blockXSize, blockYSize);
}

poBand->AddComplexSource(proxyDS->GetRasterBand(nBand),0,0,nCols,nRows,0,0,nCols,nRows);

Expand Down

0 comments on commit 57e607d

Please sign in to comment.