PostGIS
3.4.0dev-r@@SVN_REVISION@@
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Functions
c
d
f
g
i
l
m
p
q
w
Variables
a
b
c
d
f
g
h
i
l
n
o
p
r
s
t
u
v
x
y
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
Properties
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
g
h
i
l
m
n
o
p
r
s
t
v
w
y
Typedefs
_
b
c
d
e
f
g
h
i
l
m
n
p
r
s
t
u
y
Enumerations
Enumerator
a
c
d
e
f
g
i
j
l
m
p
r
s
t
u
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Macros
Pages
◆
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