PostGIS  2.5.7dev-r@@SVN_REVISION@@
rtrowdump.py File Reference

Go to the source code of this file.

Namespaces

 rtrowdump
 

Functions

def rtrowdump.logit (msg)
 
def rtrowdump.pt2gdt (pt)
 
def rtrowdump.pt2numpy (pt)
 

Variables

 rtrowdump.prs
 
 rtrowdump.dest
 
 rtrowdump.action
 
 rtrowdump.default
 
 rtrowdump.help
 
 rtrowdump.opts
 
 rtrowdump.args
 
 rtrowdump.VERBOSE = opts.verbose
 
 rtrowdump.rt = rtreader.RasterReader(opts.db, opts.table, opts.column, opts.where)
 
 rtrowdump.logging
 
string rtrowdump.out_format = "GTiff"
 
 rtrowdump.out_driver = gdal.GetDriverByName(out_format)
 
def rtrowdump.out_data_type = pt2gdt(rt.pixel_types[0])
 
 rtrowdump.out_ds = out_driver.Create(opts.output, rt.width, rt.height, rt.num_bands, out_data_type)
 
 rtrowdump.raster = numpy.zeros((rt.height, rt.width), pt2numpy(out_data_type))
 Be careful!! Zeros function's input parameter can be a (height x width) array, not (width x height): http://docs.scipy.org/doc/numpy/reference/generated/numpy.zeros.html?highlight=zeros#numpy.zeros. More...
 
 rtrowdump.pixel = rt.get_value(b, width_index + 1, height_index + 1)
 
 rtrowdump.band = out_ds.GetRasterBand(b)