删除索引 (Coverage)

许可等级:BasicStandardAdvanced

摘要

从指定项和 INFO 表中删除属性索引。

用法

语法

DropIndex_arc (in_info_table, {index_item})
参数说明数据类型
in_info_table

包含要删除项目索引的 INFO 表的名称。

INFO Table
index_item
[index_item,...]
(可选)

从输入 INFO 表中选择要移除的项目索引。如果未指定索引项目,将删除文件的所有项目索引。

“添加项目”按钮(只能在模型构建器中使用)可用于添加所需项目,以完成对话框并继续构建模型。

INFO Item

代码实例

删除索引示例(独立脚本)

以下独立脚本演示了如何从 coverage 的面属性表中删除项目索引。

# Name: DropIndex_Example.py
# Description: Drops the index from an item in a polygon featureclass
# Requirements: ArcInfo Workstation

# Import system modules
import arcpy
from arcpy import env

# Set environment settings
env.workspace = "C:/data"

# Set local variables
inInfoTable = "tongass1/polygon"
indexItem = "IN-FISH"

# Execute DropIndex
arcpy.DropIndex_arc(inInfoTable, indexItem)

环境

相关主题

许可信息

ArcGIS for Desktop Basic:否
ArcGIS for Desktop Standard:否
ArcGIS for Desktop Advanced:需要 已安装 ArcInfo Workstation
9/15/2013