com.esri.arcgis.carto
Interface IIndexQuery

All Superinterfaces:
Serializable
All Known Implementing Classes:
FeatureIndex

public interface IIndexQuery
extends Serializable

Provides access to members that control the index created with IFeatureIndex.

Superseded By

IIndexQuery2

Remarks

Use the methods available in this interface and in IIndexQuery2 to select indexed feature. See IFeatureIndex2.

Product Availability

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


Method Summary
 IFeatureCursor getWithin(IGeometry pShape)
          Finds all features that the input shape lies within.
 void nearestFeature(IGeometry pShape, int[] pClosestFeatureFID, double[] pDistance)
          Finds the nearest feature in index to the input shape.
 

Method Detail

nearestFeature

void nearestFeature(IGeometry pShape,
                    int[] pClosestFeatureFID,
                    double[] pDistance)
                    throws IOException,
                           AutomationException
Finds the nearest feature in index to the input shape.

Description

Returns the nearest indexed feature and the distance to it based on the input shape.

Pass the returned long into IFeatureClass.GetFeature to get the corresponding feature.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
pShape - A reference to a com.esri.arcgis.geometry.IGeometry (in)
pClosestFeatureFID - The pClosestFeatureFID (out: use single element array)
pDistance - The pDistance (out: use single element array)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getWithin

IFeatureCursor getWithin(IGeometry pShape)
                         throws IOException,
                                AutomationException
Finds all features that the input shape lies within.

Product Availability

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

Parameters:
pShape - A reference to a com.esri.arcgis.geometry.IGeometry (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IFeatureCursor
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.