I have a python script that creates a raster attribute table. This runs through all the rasters that I have that are float, convert them to ints, and then create an attribute table.
On the first 3 rasters, I get a warning message,
Value range for c:\raster2 exceeds 100000 and number of unique values exceeds 500.
Please use BUILDVAT if a VAT is required.
but an attribute table is created. After that, however, the program crashes, and I do not know how to fix it. This is the error message printed on the screen:
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).
Error starting error message does not help, as well as help files. Are there any solutions to this problem?
Thank.
djq source
share