Home > All Other Interfaces > ILayer > ExecuteSpatialQuery

ExecuteSpatialQuery

You can select a particular geographical area in order to perform an editing operation (e.g. merge, explode) or modify properties for all the features included in the area. The selection area is defined by creating a polygon, polyline or point geometry, and defining its spatialrelation properties, i.e. its spatial interaction with the terrain. All features that intersect with the selection area geometry according to the IGeometry properties set are returned.

 

JavaScript

 

ExecuteSpatialQuery(

      pIGeometry,

      IntersectionType = IntersectionType.IT_INTERSECT)

 

C#

 

IFeatures6 ExecuteSpatialQuery(

      IGeometry pIGeometry,

      IntersectionType IntersectionType = IntersectionType.IT_INTERSECT)

 

C++

 

HRESULT ExecuteSpatialQuery(

       IGeometry* pIGeometry,

       IntersectionType IntersectionType,

       IFeatures6** pITerraExplorerObject)

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

pITerraExplorerObject6

An ITerraExplorerObject6, representing the streaming layer.

Exceptions

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