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

Go to the source code of this file.

Namespaces

 pixval
 

Functions

def pixval.pt2fmt (pt)
 

Variables

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