ラスター属性テーブルの削除 (Delete Raster Attribute Table) (データ管理)

概要

ラスター データセットに関連付けられたラスター属性テーブルを削除します。

使用法

  • 入力ラスター データセットにはシングルバンドのみを設定できます。

構文

DeleteRasterAttributeTable(in_raster)
パラメーター説明データ タイプ
in_raster

削除対象の属性テーブルが含まれるラスター データセット。

Raster Layer

派生した出力

名前説明データ タイプ
out_raster

出力ラスター データセット。

ラスター レイヤー

コードのサンプル

DeleteRasterAttributeTable (ラスター属性テーブルの削除) の例 1 (Python ウィンドウ)

以下は、DeleteRasterAttributeTable ツールを実行する Python サンプルです。

##====================================
##Delete Raster Attribute Table
##Usage: DeleteRasterAttributeTable_management in_raster
    
import arcpy
arcpy.env.workspace = "C:/Workspace"

##Delete the attribute table of single band image if exist
arcpy.DeleteRasterAttributeTable_management("image.tif")
DeleteRasterAttributeTable (ラスター属性テーブルの削除) の例 2 (スタンドアロン スクリプト)

以下は、DeleteRasterAttributeTable ツールを実行する Python スクリプト サンプルです。

##====================================
##Delete Raster Attribute Table
##Usage: DeleteRasterAttributeTable_management in_raster
    
import arcpy
arcpy.env.workspace = "C:/Workspace"

##Delete the attribute table of single band image if exist
arcpy.DeleteRasterAttributeTable_management("image.tif")

環境

このツールは、ジオプロセシング環境を使用しません。

ライセンス情報

  • Basic: はい
  • Standard: はい
  • Advanced: はい

関連トピック