arcpy.management.DeleteRasterAttributeTable(in_raster)
|
名称
|
说明
|
数据类型
|
|
in_raster
|
包含待移除属性表的栅格数据集。
|
Raster Layer
|
派生输出
|
名称
|
说明
|
数据类型
|
|
out_raster
|
输出栅格数据集。
|
Raster Layer
|
代码示例
'DeleteRasterAttributeTable' 示例 1(Python 窗口)
这是 DeleteRasterAttributeTable 工具的 Python 示例。
##====================================
##Delete Raster Attribute Table
import arcpy
arcpy.env.workspace = "C:/Workspace"
##Delete the attribute table of single band image if exist
arcpy.management.DeleteRasterAttributeTable("image.tif")
DeleteRasterAttributeTable 示例 2(独立脚本)
这是 DeleteRasterAttributeTable 工具的 Python 脚本示例。
##====================================
##Delete Raster Attribute Table
import arcpy
arcpy.env.workspace = "C:/Workspace"
##Delete the attribute table of single band image if exist
arcpy.management.DeleteRasterAttributeTable("image.tif")