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

Go to the source code of this file.

Namespaces

 ovdump
 

Variables

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