com.esri.arcgis.geometry
Interface IEnumGeometry

All Superinterfaces:
Serializable
All Known Implementing Classes:
EnumFeatureGeometry, GeometryBag

public interface IEnumGeometry
extends Serializable

Provides access to members that enumerate the members of a collection of geometries.

Description

IEnumGeometry methods can be used to loop over the geometries contain in a GeometryBag or an EnumFeatureGeometry.

Product Availability

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


Method Summary
 int getCount()
          The number of geometries in the enumeration.
 IGeometry next()
          Returns the next geometry in the enumeration.
 void reset()
          Starts the enumeration at the beginning.
 

Method Detail

next

IGeometry next()
               throws IOException,
                      AutomationException
Returns the next geometry in the enumeration.

Description

Returns the Next Geometry part from the current enumeration location.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Returns:
A reference to a com.esri.arcgis.geometry.IGeometry
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

reset

void reset()
           throws IOException,
                  AutomationException
Starts the enumeration at the beginning.

Description

Resets the current enumeration location to the null pointer at the beginning of the enumeration such that the Next Geometry is the first Geometry part in the enumeration.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getCount

int getCount()
             throws IOException,
                    AutomationException
The number of geometries in the enumeration.

Description

Returns the number of distinct geometry parts in the enumeration. This count is the same as the count returned by GeometryCount in a GeometryCollection.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Returns:
The geometryCount
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.