Class MultiPolygon
A MultiPolygon is a MultiSurface whose elements are Polygons.
Implements
Inherited Members
Namespace: Mapsui.Geometries
Assembly: Mapsui.Geometries.dll
Syntax
public class MultiPolygon : Geometry, IEquatable<Geometry>, IGeometryCollection, IGeometry, IEnumerable<Geometry>, IEnumerable
Constructors
| Improve this Doc View SourceMultiPolygon()
Instantiates a MultiPolygon
Declaration
public MultiPolygon()
Properties
| Improve this Doc View SourceArea
Returns summed area of the Polygons in the MultiPolygon collection
Declaration
public double Area { get; }
Property Value
Type | Description |
---|---|
System.Double |
BoundingBox
Returns the bounding box of the object
Declaration
public override BoundingBox BoundingBox { get; }
Property Value
Type | Description |
---|---|
BoundingBox | bounding box |
Overrides
| Improve this Doc View SourceItem[Int32]
Returns an indexed geometry in the collection
Declaration
public Polygon this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Geometry index |
Property Value
Type | Description |
---|---|
Polygon | Geometry at index |
NumGeometries
Returns the number of geometries in the collection.
Declaration
public int NumGeometries { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Polygons
Collection of polygons in the multipolygon
Declaration
public IList<Polygon> Polygons { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<Polygon> |
Methods
| Improve this Doc View SourceClone()
Return a copy of this geometry
Declaration
public MultiPolygon Clone()
Returns
Type | Description |
---|---|
MultiPolygon | Copy of Geometry |
Contains(Point)
Declaration
public override bool Contains(Point point)
Parameters
Type | Name | Description |
---|---|---|
Point | point |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceDistance(Point)
Returns the shortest distance between any two points in the two geometries as calculated in the spatial reference system of this Geometry.
Declaration
public override double Distance(Point point)
Parameters
Type | Name | Description |
---|---|---|
Point | point | Geometry to calculate distance to |
Returns
Type | Description |
---|---|
System.Double | Shortest distance between any two points in the two geometries |
Overrides
| Improve this Doc View SourceEquals(Geometry)
Declaration
public override bool Equals(Geometry geom)
Parameters
Type | Name | Description |
---|---|---|
Geometry | geom |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceGeometry(Int32)
Returns an indexed geometry in the collection
Declaration
public Geometry Geometry(int n)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | n | Geometry index |
Returns
Type | Description |
---|---|
Geometry | Geometry at index N |
GetBoundingBox()
Declaration
[Obsolete("Use the BoundingBox field instead")]
public BoundingBox GetBoundingBox()
Returns
Type | Description |
---|---|
BoundingBox |
GetEnumerator()
Gets an enumerator for enumerating the geometries in the GeometryCollection
Declaration
public IEnumerator<Geometry> GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<Geometry> |
IsEmpty()
If true, then this Geometry represents the empty point set, Ø, for the coordinate space.
Declaration
public override bool IsEmpty()
Returns
Type | Description |
---|---|
System.Boolean | Returns 'true' if this Geometry is the empty geometry |
Overrides
Explicit Interface Implementations
| Improve this Doc View SourceIEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.IEnumerator |