我有一个python脚本可以制作栅格的属性表。这遍历了我所有的浮点数的栅格,将它们转换为整数,然后创建一个属性表。在ArcGIS中制作栅格属性表的问题
在第一3个栅格,我得到一个警告信息,
Value range for c:\raster2 exceeds 100000 and number of unique values exceeds 500.
Please use BUILDVAT if a VAT is required.
,但会产生一个属性表。在此之后,然而程序崩溃,我不知道如何解决它。这是打印到屏幕的错误消息:
Value range for c:\raster2 exceeds 100000 and number of unique values exceeds 500.
Please use BUILDVAT if a VAT is required.
Traceback (most recent call last):
File "LEED_raster_attribute.py", line 50, in <module>
make_attribute(20, 'C:\\Analysis\\Raster_Distances\\city')
File "Raster_attribute.py", line 40, in make_attribute
gp.BuildRasterAttributeTable_management(outRaster)
arcgisscripting.ExecuteError: ERROR 000521: The number of unique values exceeds the limit.
Failed to execute (BuildRasterAttributeTable).
使用谷歌搜索错误消息没有帮助,也没有帮助文件。有没有解决这个问题的方法?
谢谢。