Skip to content

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

Members

Name Description
Method IntersectedFeatures Finds all intersected features in index to the input shape.
Method NearestFeature Finds the nearest feature in index to the input shape.
Method NearestFeatures Finds all nearest features in index to the input shape (i.e. equal distance).
Read-only property Within Finds all features that the input shape lies within.
Method WithinFeature Finds the first feature that the input shape lies within.

IIndexQuery2.IntersectedFeatures Method

Finds all intersected features in index to the input shape.

Public Sub IntersectedFeatures ( _
    ByVal pShape As IGeometry, _
    ByRef pSAIds As Object _
)
public void IntersectedFeatures (
    IGeometry pShape,
    ref object pSAIds
);

IIndexQuery2.NearestFeature Method

Finds the nearest feature in index to the input shape.

Public Sub NearestFeature ( _
    ByVal pShape As IGeometry, _
    ByRef pClosestFeatureFID As Integer, _
    ByRef pDistance As Double _
)
public void NearestFeature (
    IGeometry pShape,
    ref int pClosestFeatureFID,
    ref double pDistance
);

IIndexQuery2.NearestFeatures Method

Finds all nearest features in index to the input shape (i.e. equal distance).

Public Sub NearestFeatures ( _
    ByVal pShape As IGeometry, _
    ByRef pSAIds As Object, _
    ByRef pDistance As Double _
)
public void NearestFeatures (
    IGeometry pShape,
    ref object pSAIds,
    ref double pDistance
);

IIndexQuery2.Within Property

Finds all features that the input shape lies within.

Public Function get_Within ( _
    ByVal pShape As IGeometry _
) As IFeatureCursor
public IFeatureCursor get_Within (
    IGeometry pShape
);

IIndexQuery2.WithinFeature Method

Finds the first feature that the input shape lies within.

Public Function WithinFeature ( _
    ByVal pShape As IGeometry _
) As Integer
public int WithinFeature (
    IGeometry pShape
);

Classes that implement IIndexQuery2

Classes Description
FeatureIndex A feature class index.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.