IGeometryCollection

This interface gives access to geometry collections, providing methods for accessing, adding and removing individual geometries of a multi-part geometry (multipoint, multilinestring, multipolygon). For multipoints, the geometry parts are points. For multilinestrings, the geometry parts are linestrings. For multipolygons, the geometry parts are polygons.

 

 

Properties

 

Count

Gets the number of geometries in the collection.

Dimension

Gets the dimension of the collection. (Inherited from IGeometry)

Envelope

Gets the collection’s bounding box. (Inherited from IGeometry)

Geometry

Gets the IGeometry element in the specified zero-based index. (C# exposes this property as get_Geometry method)

GeometryType

Gets the collection’s geometry type. (Inherited from IGeometry)

GeometryTypeStr

Gets a string representation of the collection type. (Inherited from IGeometry)

Item

Gets the IGeometry element in the specified zero-based index.

NumGeometries

Gets the number of geometries in this collection.

SpatialOperator

An ISpatialOperator representing the selected collection’s interaction with another geometry object. (Inherited from IGeometry)

SpatialRelation

An ISpatialRelation that tests the collection’s spatial relationship with other geometries. (Inherited from IGeometry)

Wks

An IWks representing methods for transferring coordinate system information (WKT and WKB). (Inherited from IGeometry)

 

Methods

 

AddGeometry

Adds a geometry to the collection.

Clone

Returns an exact copy of the selected collection. (Inherited from IGeometry)

DeleteGeometry

Deletes the selected geometry from the collection.

EndEdit

Terminates the edit item mode. (Inherited from IGeometry)

get_Geometry

Returns the IGeometry element in the specified zero-based index. (This method is exposed only in C#. To use from C++ or JavaScript use the Geometry property)

IsEmpty

Returns a Boolean indicating whether the selected geometry collection is empty. (Inherited from IGeometry)

IsSimple

Returns a Boolean indicating whether the geometry collection is simple. (Inherited from IGeometry)

SetEmpty

Removes all geometries from this collection. (Inherited from IGeometry)

StartEdit

Starts the edit item mode. (Inherited from IGeometry)