PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ calculate_overview_factor()

def raster2pgsql.calculate_overview_factor (   ds,
  overview 
)

Definition at line 498 of file raster2pgsql.py.

References logit().

498 def calculate_overview_factor(ds, overview):
499  assert ds is not None
500 
501 
502  # Assume all bands have same layout of overviews
503  band = ds.GetRasterBand(1)
504  assert band is not None
505  assert overview < band.GetOverviewCount()
506 
507  ov_band = band.GetOverview(overview)
508  assert ov_band is not None
509 
510  ovf = int(0.5 + ds.RasterXSize / float(ov_band.XSize))
511  logit('MSG: Overview factor = %d\n' % ovf)
512 
513  return ovf
514 
515 
def logit(msg)
def calculate_overview_factor(ds, overview)
Here is the call graph for this function: