This method returns a list of features that intersect with a selection area's geometry according to the specified intersection type. Only features that are showing will be returned.
Note: If a layer is being streamed, the features returned by this method only reflect the layer status at the time the method is called. The actual loaded features may change as features are added or deleted while the layer is streaming.
JavaScript |
|
ExecuteSpatialQuery( pIGeometry, IntersectionType) |
C# |
|
IFeatures66 ExecuteSpatialQuery( IGeometry pIGeometry, [IntersectionType IntersectionType = IntersectionType.IT_INTERSECT]) |
C++ |
|
HRESULT ExecuteSpatialQuery( IGeometry* pIGeometry, IntersectionType IntersectionType, IFeatures66** 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 IFeatures66, 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.