CPLErr GDALProxyRasterBand::FlushCache() { // We need to make sure that all cached bocks at the proxy level are // first flushed CPLErr ret = GDALRasterBand::FlushCache(); if( ret == CE_None ) { GDALRasterBand* poSrcBand = RefUnderlyingRasterBand(); if (poSrcBand) { ret = poSrcBand->FlushCache(); UnrefUnderlyingRasterBand(poSrcBand); } else { ret = CE_Failure; } } return ret; }
CPLErr GDALOverviewBand::FlushCache() { if( poUnderlyingBand ) return poUnderlyingBand->FlushCache(); return CE_None; }