ラスターの属性テーブルを作成する Python スクリプトがあります。これは、フロートであるすべてのラスターを実行し、それらを int に変換してから、属性テーブルを作成します。
最初の 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).
エラーメッセージをグーグルで検索しても、ヘルプファイルも役に立ちません。この問題の解決策はありますか?
ありがとう。