GeometryCollection.Add
GeometryCollection.Add method
Adds the specified geometry to the collection.
public void Add(IGeometry geometry)
| Parameter | Type | Description |
|---|---|---|
| geometry | IGeometry | The geometry to add. |
Exceptions
| exception | condition |
|---|---|
| ArgumentNullException | The argument is null. |
| ArgumentException | The collection does not accept geometries of this type. |
| ArgumentException | SpatialReferenceSystem of this geometry and SpatialReferenceSystem of argument are both not null and don’t equal to each other. |
See Also
- interface IGeometry
- class GeometryCollection
- namespace Aspose.Gis.Geometries
- assembly Aspose.GIS