PostGIS
2.4.9dev-r@@SVN_REVISION@@
|
Variables | |
prs | |
dest | |
action | |
default | |
help | |
type | |
opts | |
args | |
src_ds = gdal.Open(opts.raster, gdalc.GA_ReadOnly); | |
MAIN. More... | |
band = src_ds.GetRasterBand(1) | |
int | nvstart = 0 |
nvend = band.GetOverviewCount() | |
ov_band = band.GetOverview(nv) | |
ovf = int(0.5 + band.XSize / float(ov_band.XSize)) | |
string | dst_file = os.path.basename(opts.raster) + "_ov_" + str(ovf) + ".tif" |
string | dst_format = "GTiff" |
dst_drv = gdal.GetDriverByName(dst_format) | |
dst_ds = dst_drv.Create(dst_file, ov_band.XSize, ov_band.YSize, src_ds.RasterCount, ov_band.DataType) | |
dst_band = dst_ds.GetRasterBand(nb) | |
data = ov_band.ReadRaster(0, 0, ov_band.XSize, ov_band.YSize) | |
YSize | |
buf_type | |