Home > All Other Interfaces > IGeometryCollection

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 multipoint, the Geometry parts are points. For multilinestrings, the Geometry parts are linestrings.  For multipolygons, the Geometry parts are polygons.

 

 

Properties

 

Count

The number of geometries in the collection.

Dimension

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

Envelope

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

Geometry

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

GeometryType

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

GeometryTypeStr

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

Item

Returns the IGeometry element in the specified zero based index.

NumGeometries

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 whether or not the selected geometry collection is empty. (Inherited from IGeometry)

IsSimple

Returns whether or not 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)