ArcObjects Library Reference  (Geometry)    

IGeometryCollection Interface

Provides access to members that can be used for accessing, adding and removing individual geometries of a multi-part geometry (Multipoint, Polyline, Polygon, MultiPatch, and GeometryBag).

Product Availability

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

Description

A Collection of Geometry parts.  For Multipoints, TriangleFans, and TriangleStrips, the Geometry parts are Points. For Polylines, the Geometry parts are Paths.  For Polygons, the Geometry parts are Rings.  For MultiPatches, the Geometry parts are TriangleFans, TriangleStrips, or Rings.  For GeometryBags, the Geometry parts are any IGeometry object.

The GeometryCollection can be used to access, manipulate, add, insert, remove, and set specific parts of a composite geometry.

Members

Description
Method AddGeometries Adds references to the specified geometries. This method is intended for internal use only.
Method AddGeometry Adds a reference to the input geometry either at the end, or before, or after the specified index.
Method AddGeometryCollection Adds references to geometries in the input collection.
Method GeometriesChanged Tells this geometry collection that some of its geometries have been altered. Use this method on polylines, polygons and multipatches after directly editing one of its parts.
Read-only property Geometry A reference to the ith geometry.
Read-only property GeometryCount The number of geometries in this collection.
Method InsertGeometries Inserts at the specified index references to some number of geometries in the input array. This method is intended for internal use only.
Method InsertGeometryCollection Inserts at the specified index references to all if the geometries in the input collection.
Method QueryGeometries Populates the array with references to a sub-sequence of geometries. This method is intended for internal use only.
Method RemoveGeometries Removes references to some geometries from this collection.
Method SetGeometries Replaces all geometries in the collection with the specified number of references to those in the input array. This method is intended for internal use only.
Method SetGeometryCollection Replaces all geometries in the collection with references to geometries from the input collection.

CoClasses that implement IGeometryCollection

CoClasses and Classes Description
GeoEllipse (esriMilitaryAnalyst) A spheroidal ellipse.
GeometryBag An ordered collection of objects that support the IGeometry interface.
GeoPolygon (esriMilitaryAnalyst) A spheroidal polygon.
GeoPolyline (esriMilitaryAnalyst) A spheroidal polyline.
MultiPatch A collection of surface patches.
Multipoint An ordered collection of points; optionally has measure, height and ID attributes.
Polygon A collection of rings ordered by their containment relationship; optionally has measure, height and ID attributes.
Polyline An ordered collection of paths; optionally has measure, height and ID attributes.
TriangleFan A continuous 3D fan of triangles, where each triangle after the first shares an edge with the preceding triangle, and all triangles share a common pivot point.
Triangles
TriangleStrip A continuous 3D strip of triangles, where each triangle after the first shares an edge with the preceding triangle.

See Also

IGeometry Interface | ISegmentCollection Interface | IPointCollection Interface | IGeometryCollection Interface

Example

IGeometryCollection_Example

 


Feedback Send feedback on this page