Class MultiLineString
A MultiLineString is a MultiCurve whose elements are LineStrings.
Implements
Inherited Members
Namespace: Mapsui.Geometries
Assembly: Mapsui.Geometries.dll
Syntax
public class MultiLineString : GeometryCollection, IEquatable<Geometry>, IGeometryCollection, IGeometry, IEnumerable<Geometry>, IEnumerable
Constructors
| Improve this Doc View SourceMultiLineString()
Initializes an instance of a MultiLineString
Declaration
public MultiLineString()
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 SourceIsClosed
Returns true if all LineStrings in this MultiLineString is closed (StartPoint=EndPoint for each LineString in this MultiLineString)
Declaration
public bool IsClosed { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Item[Int32]
Returns an indexed geometry in the collection
Declaration
public LineString this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Geometry index |
Property Value
Type | Description |
---|---|
LineString | Geometry at index |
Length
The length of this MultiLineString which is equal to the sum of the lengths of the element LineStrings.
Declaration
public double Length { get; }
Property Value
Type | Description |
---|---|
System.Double |
LineStrings
Collection of LineString in the MultiLineString
Declaration
public IList<LineString> LineStrings { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<LineString> |
NumGeometries
Returns the number of geometries in the collection.
Declaration
public override int NumGeometries { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Overrides
Methods
| Improve this Doc View SourceClone()
Return a copy of this geometry
Declaration
public MultiLineString Clone()
Returns
Type | Description |
---|---|
MultiLineString | 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 override Geometry Geometry(int n)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | n | Geometry index |
Returns
Type | Description |
---|---|
Geometry | Geometry at index N |
Overrides
| Improve this Doc View SourceGetEnumerator()
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 |