Index Item (Coverage)


Creates an attribute index to increase access speed to the specified item during query operations.



IndexItem_arc (in_info_table, index_item)
ParameterExplanationData Type

The name of the INFO table containing the item to be indexed

ArcInfo table

The name of the item to be indexed

ArcInfo item

Code Sample

IndexItem example (stand-alone script)

The following stand-alone script demonstrates how to index an item in a coverage, and then select features using the indexed item.

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

# 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)


Related Topics

Licensing Information

ArcView: No
ArcEditor: No
ArcInfo: Requires ArcInfo Workstation installed

Published 6/8/2010