ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

Index Item

Available with Advanced license.

  • Summary
  • Usage
  • Syntax
  • Code sample
  • Environments
  • Licensing information

Summary

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

Usage

  • Indexed items speed up selection operations of large INFO files.

  • Item indexes are preserved when the coverage or INFO table is copied to a new location.

  • Item indexes are preserved when exporting and importing a coverage to an interchange (.e00) file using the Export To Interchange File and Import From Interchange File tools.

  • Items must be indexed to support native mode reselects against external database management system (DBMS) tables.

  • An index file becomes outdated if the following commands are used on the INFO table: Calculate Field, Update, Build, or Clean. Attempting to use the outdated index will cause the following message to be generated: "Index file is obsolete." If you receive this message, rebuild the index file and continue.

  • The following commands are affected by indexed items: Eliminate, Select, and Join Info Tables.

Syntax

arcpy.arc.IndexItem(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

  • Current Workspace
  • Level Of Comparison Between Projection Files
  • Precision For Derived Coverages
  • Precision For New Coverages
  • Scratch Workspace

Licensing information

  • Basic: No
  • Standard: No
  • Advanced: Requires ArcInfo Workstation installed

Related topics

  • An overview of the Index toolset

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2021 Esri. | Privacy | Legal