ExecuteSpatialQuery

This method returns a list of features that intersect with a selection area geometry according to the specified intersection type.

 

JavaScript

 

ExecuteSpatialQuery(

       pIGeometry,

       IntersectionType)

 

C#

 

IFeatures65 ExecuteSpatialQuery(

       IGeometry pIGeometry,

       [IntersectionType IntersectionType = IntersectionType.IT_INTERSECT])

 

C++

 

HRESULT ExecuteSpatialQuery(

       IGeometry* pIGeometry,

       IntersectionType IntersectionType,

       IFeatures65** pIFeatures)

Parameters

pIGeometry

§   Any valid IGeometry derived object.

 

IntersectionType

An enum that determines the intersection type. The following are the possible values:

·          IT_NONE = 0

·          IT_INTERSECT = 1
Select all features that geometrically intersect with the selection area.

·          IT_WITHIN = 2
Select only features whose entire geometry falls within the selection area drawn.

Return Value

pIFeatures

An IFeatures65, containing all the features that intersect with the selection area geometry according to the IGeometry properties set.

Exceptions

See:  HRESULT Return Values for a list of possible values returned by the HRESULT.