我对GDAL/有这个错误问题
INPUT_raster = "E:\myraster.asc"
ds = gdal.Open(INPUT_raster, gdal.GA_ReadOnly)
band = ds.GetRasterBand(1)
data = band.ReadAsArray(9658, 11599, 1, 1)
ERROR 5: E:\myraster.asc, band 1: Access window out of range in RasterIO(). Requested
(9658,11599) of size 1x1 on raster of 9658x16934.
是否可以使用 try: 和 expect: 来避免这个错误?
我将不胜感激您的意见/建议。
问候,詹尼