PostGIS  2.5.0dev-r@@SVN_REVISION@@
pixval Namespace Reference

Functions

def pt2fmt (pt)
 

Variables

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