PostGIS
3.0.6dev-r@@SVN_REVISION@@
◆
calculate_overview_factor()
def raster2pgsql.calculate_overview_factor
(
ds
,
overview
)
Definition at line
499
of file
raster2pgsql.py
.
499
def
calculate_overview_factor
(ds, overview):
500
assert
ds
is
not
None
501
502
503
# Assume all bands have same layout of overviews
504
band = ds.GetRasterBand(1)
505
assert
band
is
not
None
506
assert
overview < band.GetOverviewCount()
507
508
ov_band = band.GetOverview(overview)
509
assert
ov_band
is
not
None
510
511
ovf = int(0.5 + ds.RasterXSize / float(ov_band.XSize))
512
logit
(
'MSG: Overview factor = %d\n'
% ovf)
513
514
return
ovf
515
516
raster2pgsql.logit
def logit(msg)
Definition:
raster2pgsql.py:207
raster2pgsql.calculate_overview_factor
def calculate_overview_factor(ds, overview)
Definition:
raster2pgsql.py:499
References
logit()
.
Here is the call graph for this function:
raster2pgsql
Generated by
1.9.1