Class MultiPoint
A MultiPoint is a 0 dimensional geometric collection. The elements of a MultiPoint are restricted to Points. The points are not connected or ordered.
Implements
Inherited Members
Namespace: Mapsui.Geometries
Assembly: Mapsui.Geometries.dll
Syntax
public class MultiPoint : GeometryCollection, IEquatable<Geometry>, IGeometryCollection, IGeometry, IEnumerable<Geometry>, IEnumerable
Constructors
| Improve this Doc View SourceMultiPoint()
Initializes a new MultiPoint collection
Declaration
public MultiPoint()
MultiPoint(IEnumerable<Double[]>)
Initializes a new MultiPoint collection
Declaration
public MultiPoint(IEnumerable<double[]> points)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<System.Double[]> | points |
Properties
| Improve this Doc View SourceBoundingBox
The minimum bounding box for this Geometry.
Declaration
public override BoundingBox BoundingBox { get; }
Property Value
Type | Description |
---|---|
BoundingBox |
Overrides
| Improve this Doc View SourceItem[Int32]
Gets the n'th point in the MultiPoint collection
Declaration
public Point this[int n] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | n | Index in collection |
Property Value
Type | Description |
---|---|
Point | Point |
NumGeometries
Returns the number of geometries in the collection.
Declaration
public override int NumGeometries { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Overrides
| Improve this Doc View SourcePoints
Gets or sets the MultiPoint collection
Declaration
public IList<Point> Points { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<Point> |
Methods
| Improve this Doc View SourceClone()
Return a copy of this geometry
Declaration
public MultiPoint Clone()
Returns
Type | Description |
---|---|
MultiPoint | Copy of Geometry |
Distance(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 SourceGeometry(Int32)
Returns an indexed geometry in the collection
Declaration
public Point Geometry(int n)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | n | Geometry index |
Returns
Type | Description |
---|---|
Point | Geometry at index N |
GetEnumerator()
Gets an enumerator for enumerating the geometries in the GeometryCollection
Declaration
public override IEnumerator<Geometry> GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<Geometry> |
Overrides
| Improve this Doc View SourceIsEmpty()
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 |