PostGIS  2.1.10dev-r@@SVN_REVISION@@
ovdump Namespace Reference

Variables

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