Index Item (Coverage)

License Level:BasicStandardAdvanced

Summary

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

Usage

Syntax

IndexItem_arc (in_info_table, index_item)
ParameterExplanationData Type
in_info_table

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

INFO Table
index_item

The name of the item to be indexed

INFO 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: 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)

Environments

Related Topics

Licensing Information

ArcGIS for Desktop Basic: No
ArcGIS for Desktop Standard: No
ArcGIS for Desktop Advanced: Requires ArcInfo Workstation installed
6/18/2012