com.esri.arcgis.geodatabase
Interface IEnumGeometryBind

All Superinterfaces:
Serializable
All Known Implementing Classes:
EnumFeatureGeometry

public interface IEnumGeometryBind
extends Serializable

Provides access to members that bind a feature cursor or a selection to a geometry enumerator.

Description

This interface allows a newly-instantiated EnumFeatureGeometry object to be bound to either a feature class or a selection set. The object can then be cast to the IEnumGeometry interface and the geometries can be iterated through. This is effectively a shortcut to use instead of creating a search cursor on the feature class or selection set and retrieving geometries from the features returned.

Product Availability

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


Method Summary
 void bindGeometrySource(IQueryFilter outputFilter, Object collectionSource)
          Bind the source of the geometry to the enumeration.
 void getGeometrySource(Object[] geometrySource)
          The geometry source - either a feature class or a selection set.
 void getOutputFilter(IQueryFilter outputFilter)
          The query filter that was used to bind the geometry source.
 

Method Detail

bindGeometrySource

void bindGeometrySource(IQueryFilter outputFilter,
                        Object collectionSource)
                        throws IOException,
                               AutomationException
Bind the source of the geometry to the enumeration.

Description

This method binds the enumerator to a geometry source (a feature class or a selection set). After this method has been invoked on an object, the object can be cast to the IEnumGeometry interface in order to iterate through the geometries of the source.

Remarks

A query filter should always be provided to the OutputFilter parameter. Passing a null value will not result in an error, but when using this interface the only field that can be inspected from returned features is the geometry field, and the query filter should reflect this.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
outputFilter - A reference to a com.esri.arcgis.geodatabase.IQueryFilter (in)
collectionSource - A reference to another Object (IUnknown) (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getGeometrySource

void getGeometrySource(Object[] geometrySource)
                       throws IOException,
                              AutomationException
The geometry source - either a feature class or a selection set.

Product Availability

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

Parameters:
geometrySource - A reference to another Object (IUnknown) (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getOutputFilter

void getOutputFilter(IQueryFilter outputFilter)
                     throws IOException,
                            AutomationException
The query filter that was used to bind the geometry source.

Product Availability

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

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