Search Results for

    Show / Hide Table of Contents

    Class MultiLineString

    Models a collection of LineStrings.

    Any collection of LineStrings is a valid MultiLineString.
    Inheritance
    object
    Geometry
    GeometryCollection
    MultiLineString
    Implements
    IComparable
    IComparable<Geometry>
    IReadOnlyList<Geometry>
    IReadOnlyCollection<Geometry>
    IEnumerable<Geometry>
    IEnumerable
    ILineal
    Inherited Members
    GeometryCollection.Coordinate
    GeometryCollection.Coordinates
    GeometryCollection.GetOrdinates(Ordinate)
    GeometryCollection.IsEmpty
    GeometryCollection.NumGeometries
    GeometryCollection.GetGeometryN(int)
    GeometryCollection.Geometries
    GeometryCollection.NumPoints
    GeometryCollection.Area
    GeometryCollection.Length
    GeometryCollection.Apply(ICoordinateFilter)
    GeometryCollection.Apply(ICoordinateSequenceFilter)
    GeometryCollection.Apply(IEntireCoordinateSequenceFilter)
    GeometryCollection.Apply(IGeometryFilter)
    GeometryCollection.Apply(IGeometryComponentFilter)
    GeometryCollection.Normalize()
    GeometryCollection.ComputeEnvelopeInternal()
    GeometryCollection.CompareToSameClass(object)
    GeometryCollection.CompareToSameClass(object, IComparer<CoordinateSequence>)
    GeometryCollection.IsHomogeneous
    GeometryCollection.GetEnumerator()
    GeometryCollection.this[int]
    GeometryCollection.Count
    Geometry.TypeNamePoint
    Geometry.TypeNameMultiPoint
    Geometry.TypeNameLineString
    Geometry.TypeNameLinearRing
    Geometry.TypeNameMultiLineString
    Geometry.TypeNamePolygon
    Geometry.TypeNameMultiPolygon
    Geometry.TypeNameGeometryCollection
    Geometry.Factory
    Geometry.UserData
    Geometry.SRID
    Geometry.HasNonEmptyElements(Geometry[])
    Geometry.HasNullElements(object[])
    Geometry.HasNullElements<T>(IEnumerable<T>)
    Geometry.PrecisionModel
    Geometry.IsSimple
    Geometry.IsValid
    Geometry.Distance(Geometry)
    Geometry.IsWithinDistance(Geometry, double)
    Geometry.Centroid
    Geometry.InteriorPoint
    Geometry.PointOnSurface
    Geometry.Envelope
    Geometry.EnvelopeInternal
    Geometry.GeometryChanged()
    Geometry.GeometryChangedAction()
    Geometry.Disjoint(Geometry)
    Geometry.Touches(Geometry)
    Geometry.Intersects(Geometry)
    Geometry.Crosses(Geometry)
    Geometry.Within(Geometry)
    Geometry.Contains(Geometry)
    Geometry.Overlaps(Geometry)
    Geometry.Covers(Geometry)
    Geometry.CoveredBy(Geometry)
    Geometry.Relate(Geometry, string)
    Geometry.Relate(Geometry)
    Geometry.Equals(Geometry)
    Geometry.EqualsTopologically(Geometry)
    Geometry.Equals(object)
    Geometry.GetHashCode()
    Geometry.ToString()
    Geometry.ToText()
    Geometry.AsText()
    Geometry.ToBinary()
    Geometry.AsBinary()
    Geometry.ToGMLFeature()
    Geometry.Buffer(double)
    Geometry.Buffer(double, EndCapStyle)
    Geometry.Buffer(double, int)
    Geometry.Buffer(double, int, EndCapStyle)
    Geometry.Buffer(double, BufferParameters)
    Geometry.ConvexHull()
    Geometry.Intersection(Geometry)
    Geometry.Union(Geometry)
    Geometry.Difference(Geometry)
    Geometry.SymmetricDifference(Geometry)
    Geometry.Union()
    Geometry.EqualsExact(Geometry)
    Geometry.EqualsNormalized(Geometry)
    Geometry.Copy()
    Geometry.Normalized()
    Geometry.CompareTo(object)
    Geometry.CompareTo(Geometry)
    Geometry.CompareTo(object, IComparer<CoordinateSequence>)
    Geometry.IsEquivalentClass(Geometry)
    Geometry.CheckNotGeometryCollection(Geometry)
    Geometry.IsGeometryCollection
    Geometry.Compare(List<Geometry>, List<Geometry>)
    Geometry.Equal(Coordinate, Coordinate, double)
    Geometry.IsRectangle
    Geometry.DefaultFactory
    Geometry.CreateArray(int, double)
    Geometry.CreateArray(CoordinateSequence, Ordinate)
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: NetTopologySuite.Geometries
    Assembly: NetTopologySuite.dll
    Syntax
    [Serializable]
    public class MultiLineString : GeometryCollection, IComparable, IComparable<Geometry>, IReadOnlyList<Geometry>, IReadOnlyCollection<Geometry>, IEnumerable<Geometry>, IEnumerable, ILineal

    Constructors

    | Edit this page View Source

    MultiLineString(LineString[])

    Constructs a MultiLineString.

    Declaration
    public MultiLineString(LineString[] lineStrings)
    Parameters
    Type Name Description
    LineString[] lineStrings

    The LineStrings for this MultiLineString, or null or an empty array to create the empty point. Elements may be empty LineStrings, but not nulls.

    Remarks

    For create this Geometry is used a standard GeometryFactory with PrecisionModel == Floating.

    | Edit this page View Source

    MultiLineString(LineString[], GeometryFactory)

    Constructs a MultiLineString.

    Declaration
    public MultiLineString(LineString[] lineStrings, GeometryFactory factory)
    Parameters
    Type Name Description
    LineString[] lineStrings

    The LineStrings for this MultiLineString, or null or an empty array to create the empty point. Elements may be empty LineStrings, but not nulls.

    GeometryFactory factory

    Fields

    | Edit this page View Source

    Empty

    Represents an empty MultiLineString.

    Declaration
    public static readonly MultiLineString Empty
    Field Value
    Type Description
    MultiLineString

    Properties

    | Edit this page View Source

    Boundary

    Returns the boundary, or an empty geometry of appropriate dimension if this Geometry is empty. For a discussion of this function, see the OpenGIS Simple Features Specification. As stated in SFS Section 2.1.13.1, "the boundary of a Geometry is a set of Geometries of the next lower dimension."

    Declaration
    public override Geometry Boundary { get; }
    Property Value
    Type Description
    Geometry

    The closure of the combinatorial boundary of this Geometry.

    Overrides
    GeometryCollection.Boundary
    | Edit this page View Source

    BoundaryDimension

    Declaration
    public override Dimension BoundaryDimension { get; }
    Property Value
    Type Description
    Dimension
    Overrides
    GeometryCollection.BoundaryDimension
    | Edit this page View Source

    Dimension

    Declaration
    public override Dimension Dimension { get; }
    Property Value
    Type Description
    Dimension
    Overrides
    GeometryCollection.Dimension
    | Edit this page View Source

    GeometryType

    Returns the name of this object's interface.

    Declaration
    public override string GeometryType { get; }
    Property Value
    Type Description
    string

    "MultiLineString"

    Overrides
    GeometryCollection.GeometryType
    | Edit this page View Source

    IsClosed

    Gets a value indicating whether this instance is closed.

    Declaration
    public bool IsClosed { get; }
    Property Value
    Type Description
    bool

    true if this instance is closed; otherwise, false.

    | Edit this page View Source

    OgcGeometryType

    Gets the OGC geometry type

    Declaration
    public override OgcGeometryType OgcGeometryType { get; }
    Property Value
    Type Description
    OgcGeometryType
    Overrides
    GeometryCollection.OgcGeometryType
    | Edit this page View Source

    SortIndex

    Gets a value to sort the geometry

    Declaration
    protected override Geometry.SortIndexValue SortIndex { get; }
    Property Value
    Type Description
    Geometry.SortIndexValue
    Overrides
    GeometryCollection.SortIndex
    Remarks

    NOTE:
    For JTS v1.17 this property's getter has been renamed to getTypeCode(). In order not to break binary compatibility we did not follow.

    Methods

    | Edit this page View Source

    CopyInternal()

    An internal method to copy subclass-specific geometry data.

    Declaration
    protected override Geometry CopyInternal()
    Returns
    Type Description
    Geometry

    A copy of the target geometry object.

    Overrides
    GeometryCollection.CopyInternal()
    | Edit this page View Source

    EqualsExact(Geometry, double)

    Declaration
    public override bool EqualsExact(Geometry other, double tolerance)
    Parameters
    Type Name Description
    Geometry other
    double tolerance
    Returns
    Type Description
    bool
    Overrides
    GeometryCollection.EqualsExact(Geometry, double)
    | Edit this page View Source

    HasDimension(Dimension)

    Tests whether an atomic geometry or any element of a collection has the specified dimension.
    In particular, this can be used with mixed-dimension GeometryCollections to test if they contain an element of the specified dimension.

    Declaration
    public override bool HasDimension(Dimension dim)
    Parameters
    Type Name Description
    Dimension dim

    The dimension to test

    Returns
    Type Description
    bool

    true if the geometry has or contains an element with the dimension

    Overrides
    GeometryCollection.HasDimension(Dimension)
    See Also
    Dimension
    | Edit this page View Source

    Reverse()

    Creates a MultiLineString in the reverse order to this object. Both the order of the component LineStrings and the order of their coordinate sequences are reversed.

    Declaration
    [Obsolete("Call Geometry.Reverse()")]
    public override Geometry Reverse()
    Returns
    Type Description
    Geometry

    a MultiLineString in the reverse order.

    Overrides
    GeometryCollection.Reverse()
    | Edit this page View Source

    ReverseInternal()

    Declaration
    protected override Geometry ReverseInternal()
    Returns
    Type Description
    Geometry
    Overrides
    GeometryCollection.ReverseInternal()

    Implements

    IComparable
    IComparable<T>
    IReadOnlyList<T>
    IReadOnlyCollection<T>
    IEnumerable<T>
    IEnumerable
    ILineal

    Extension Methods

    PolygonalExtracter.GetPolygonals<TCollection>(Geometry)
    PolygonalExtracter.GetPolygonals<TCollection>(Geometry, TCollection)
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX