RASTER OPERATIONS.
480 assert ds
is not None
482 if band_from
is None:
485 band_to = ds.RasterCount
487 assert band_to <= ds.RasterCount,
'Failed checking band_to=%d <= RasterCount=%d' % (band_to,ds.RasterCount)
488 assert band_from <= band_to
491 for i
in range(band_from, band_to + 1):
492 n = ds.GetRasterBand(i).GetOverviewCount()
495 assert n == nov,
'Number of raster overviews is not the same for all bands'
def calculate_overviews(ds, band_from=None, band_to=None)
RASTER OPERATIONS.