Changeset 18627


Ignore:
Timestamp:
Jan 23, 2010 7:12:42 PM (6 years ago)
Author:
warmerdam
Message:

propogate nodata during createcopy, and overview building (#2855)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/warmerdam/1.6-esri/gdal/frmts/hfa/hfadataset.cpp

    r18158 r18627  
    40094009    for( iBand = 0; iBand < nBandCount; iBand++ )
    40104010    {
     4011        int bSuccess;
    40114012        GDALRasterBand *poSrcBand = poSrcDS->GetRasterBand( iBand+1 );
    4012         poDS->GetRasterBand(iBand+1)->SetMetadata( poSrcBand->GetMetadata() );
     4013        GDALRasterBand *poDstBand = poDS->GetRasterBand(iBand+1);
     4014
     4015        poDstBand->SetMetadata( poSrcBand->GetMetadata() );
     4016        poDstBand->SetDescription( poSrcBand->GetDescription() );
     4017
     4018        double dfNoDataValue = poSrcBand->GetNoDataValue( &bSuccess );
     4019        if( bSuccess )
     4020            poDstBand->SetNoDataValue( dfNoDataValue );
    40134021    }
    40144022
Note: See TracChangeset for help on using the changeset viewer.