RASTER OPERATIONS.
479 assert ds
is not None 481 if band_from
is None:
484 band_to = ds.RasterCount
486 assert band_to <= ds.RasterCount,
'Failed checking band_to=%d <= RasterCount=%d' % (band_to,ds.RasterCount)
487 assert band_from <= band_to
490 for i
in range(band_from, band_to + 1):
491 n = ds.GetRasterBand(i).GetOverviewCount()
494 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.