PostGIS  2.4.9dev-r@@SVN_REVISION@@
ovdump.py File Reference

Go to the source code of this file.

Namespaces

 ovdump
 

Variables

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