PostGIS  2.1.10dev-r@@SVN_REVISION@@
pixval.py File Reference

Go to the source code of this file.

Namespaces

 pixval
 

Functions

def pixval.pt2fmt (pt)
 

Variables

list pixval.infile = sys.argv[1]
 
tuple pixval.nband = int(sys.argv[2])
 
tuple pixval.x = int(sys.argv[3])
 
tuple pixval.y = int(sys.argv[4])
 
tuple pixval.noverview = int(sys.argv[5])
 
tuple pixval.ds = gdal.Open(infile, gdalc.GA_ReadOnly)
 
tuple pixval.band = ds.GetRasterBand(nband)
 
 pixval.src_band = band
 
tuple pixval.pixel = src_band.ReadRaster(x - 1, y - 1, 1, 1, 1, 1)
 
tuple pixval.fmt = pt2fmt(src_band.DataType)
 
tuple pixval.pixval = struct.unpack(fmt, pixel)