|
PostGIS
3.1.6dev-r@@SVN_REVISION@@
|
Functions | |
| def | pt2fmt (pt) |
Variables | |
| infile = sys.argv[1] | |
| nband = int(sys.argv[2]) | |
| x = int(sys.argv[3]) | |
| y = int(sys.argv[4]) | |
| noverview = int(sys.argv[5]) | |
| ds = gdal.Open(infile, gdalc.GA_ReadOnly); | |
| band = ds.GetRasterBand(nband) | |
| src_band = band | |
| pixel = src_band.ReadRaster(x - 1, y - 1, 1, 1, 1, 1) | |
| def | fmt = pt2fmt(src_band.DataType) |
| pixval = struct.unpack(fmt, pixel) | |