This document is archived and information here might be outdated.  Recommended version.


FeatureIndex Class (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Classes > F > FeatureIndex Class
ArcGIS Developer Help

FeatureIndexClass Class

A feature class index.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

The FeatureIndex object is used to build a spatial index of features from a FeatureClass in memory for the purpose of finding the intersected features, nearest features, and within features. 

Since there is a fair amount of overhead required to build this index, it is not efficient to use this object if the spatial operation is only going to be applied once.  However, if many spatial queries are to be performed over the same set of features, than you may gain some performance benefits using this object.

It is important to always make sure that the Spatial References between the FeatureClass used to build the FeatureIndex and the query shape are either the same or IFeatureIndex.OutputSpatialReference has been called.  Otherwise, the results will not be correct.

Supported Platforms

Windows, Solaris, Linux

Interfaces

Interfaces Description
IFeatureIndex Provides access to members that control the creation of an index on a feature class.
IFeatureIndex2 Provides access to members that control the creation of an index on a feature class.
IIndexQuery Provides access to members that control the index created with IFeatureIndex.
IIndexQuery2 Provides access to members that control the index created with IFeatureIndex.

See Also

IFeatureIndex Interface | IIndexQuery Interface