删除栅格目录项 (Data Management)

许可等级:BasicStandardAdvanced

摘要

删除栅格目录项,包括其所有内容(如果进行了选择,还可以是其内容的子集)。

用法

语法

DeleteRasterCatalogItems_management (in_raster_catalog)
参数说明数据类型
in_raster_catalog

将删除的项所属的输入栅格目录。

Raster Catalog Layer

代码实例

DeleteRasterCatalogItems 示例 1(Python 窗口)

这是 DeleteRasterCatalogItems 工具的 Python 示例。

import arcpy
arcpy.DeleteRasterCatalogItems_management("c:/data/DeleteRC.gdb/RC_managed")
DeleteRasterCatalogItems 示例 2(独立脚本)

这是 DeleteRasterCatalogItems 工具的 Python 脚本示例。

##===================
##Delete Raster Catalog Items
##Usage: DeleteRasterCatalogItems_management in_raster_catalog
try:
    import arcpy
    arcpy.env.workspace = r"C:\PrjWorkspace"
    ##Delete FGDB Managed Raster Catalog - Support Selection in ArcMap
    arcpy.DeleteRasterCatalogItems_management("DeleteRC.gdb\\Managed")
except:
    print "Delete Raster Catalog Items example failed."
    print arcpy.GetMessages()

环境

相关主题

许可信息

ArcGIS for Desktop Basic:是
ArcGIS for Desktop Standard:是
ArcGIS for Desktop Advanced:是
9/15/2013