索引项 (Coverage)

许可等级:BasicStandardAdvanced

摘要

创建属性索引以提高查询操作期间访问指定项的速度。

用法

语法

IndexItem_arc (in_info_table, index_item)
参数说明数据类型
in_info_table

包含要构建索引的项目的 INFO 表的名称

INFO Table
index_item

要构建索引的项目名称

INFO Item

代码实例

索引项示例(独立脚本)

以下独立脚本演示了如何在 coverage 中对项目构建索引,然后使用该索引项选择要素。

# Name: IndexItem_Example.py
# Description: Indexes an item then uses that item to select features.
# Requirements: ArcInfo Workstation

# Import system modules
import arcpy
from arcpy import env

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

# Set local variables
inInfoTable = "stream/arc"
indexItem = "STRM_ORD"
inCover = "stream"
outCover = "C:/output/lowerstreams"
infoExpress = ["RESELECT STRM_ORD > 3"]

# Execute IndexItem
arcpy.IndexItem_arc(inInfoTable, indexItem)
arcpy.Reselect_arc(inCover, outCover, infoExpress)

环境

相关主题

许可信息

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