Show / Hide Table of Contents

    Class MultiLineString

    A MultiLineString is a MultiCurve whose elements are LineStrings.

    Inheritance
    System.Object
    Geometry
    GeometryCollection
    MultiLineString
    Implements
    System.IEquatable<Geometry>
    IGeometryCollection
    IGeometry
    System.Collections.Generic.IEnumerable<Geometry>
    System.Collections.IEnumerable
    Inherited Members
    GeometryCollection.Collection
    GeometryCollection.IEnumerable.GetEnumerator()
    GeometryCollection.GetBoundingBox()
    GeometryCollection.Equals(GeometryCollection)
    GeometryCollection.GetHashCode()
    GeometryCollection.Contains(Point)
    GeometryCollection.Equals(Geometry)
    Geometry.Envelope
    Geometry.AsText()
    Geometry.AsBinary()
    Geometry.ToString()
    Geometry.GeomFromText(String)
    Geometry.GeomFromWKB(Byte[])
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: Mapsui.Geometries
    Assembly: Mapsui.Geometries.dll
    Syntax
    public class MultiLineString : GeometryCollection, IEquatable<Geometry>, IGeometryCollection, IGeometry, IEnumerable<Geometry>, IEnumerable

    Constructors

    | Improve this Doc View Source

    MultiLineString()

    Initializes an instance of a MultiLineString

    Declaration
    public MultiLineString()

    Properties

    | Improve this Doc View Source

    BoundingBox

    The minimum bounding box for this Geometry.

    Declaration
    public override BoundingBox BoundingBox { get; }
    Property Value
    Type Description
    BoundingBox
    Overrides
    GeometryCollection.BoundingBox
    | Improve this Doc View Source

    IsClosed

    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
    | Improve this Doc View Source

    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

    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    LineStrings

    Collection of LineString in the MultiLineString

    Declaration
    public IList<LineString> LineStrings { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.IList<LineString>
    | Improve this Doc View Source

    NumGeometries

    Returns the number of geometries in the collection.

    Declaration
    public override int NumGeometries { get; }
    Property Value
    Type Description
    System.Int32
    Overrides
    GeometryCollection.NumGeometries

    Methods

    | Improve this Doc View Source

    Clone()

    Return a copy of this geometry

    Declaration
    public MultiLineString Clone()
    Returns
    Type Description
    MultiLineString

    Copy of Geometry

    | Improve this Doc View Source

    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
    GeometryCollection.Distance(Point)
    | Improve this Doc View Source

    Geometry(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
    GeometryCollection.Geometry(Int32)
    | Improve this Doc View Source

    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
    GeometryCollection.GetEnumerator()
    | Improve this Doc View Source

    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
    GeometryCollection.IsEmpty()

    Implements

    System.IEquatable<T>
    IGeometryCollection
    IGeometry
    System.Collections.Generic.IEnumerable<T>
    System.Collections.IEnumerable

    Extension Methods

    GeometryExtensions.Copy(IGeometry)
    GeometryIterator.AllVertices(IGeometry)
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX