Но значения пикселей, рассматриваемые для векторизации, являются просто целыми числами. Мой код выглядит следующим образом:
Код: Выделить всё
# Set grid settings
myalg = 'invdistnn:power=20.0:radius=5.0:smoothing=10.0:nodata=0.0'
gridSettings = gdal.GridOptions(width=m, height=n, algorithm=myalg, zfield=attribute, format='GTiff')
# Get and export grid
# First, prepare the output path
rasterOutName = 'grid.tif'
gridOutPath = os.path.join(outDir, rasterOutName)
# Create the grid into outDir parameter value (the path)
gdal.Grid(gridOutPath, clodDS, options=gridSettings)
clodDS.FlushCache()
clodDS = None # Freed memory
Подробнее здесь: https://stackoverflow.com/questions/784 ... using-pyth