Table of Contents

Class MultiLineString

Namespace
NetTopologySuite.Geometries
Assembly
NetTopologySuite.dll

Models a collection of LineStrings.

Any collection of LineStrings is a valid MultiLineString.
public class MultiLineString : GeometryCollection, IComparable, IComparable<Geometry>, IEnumerable<Geometry>, IEnumerable, ILineal
Inheritance
MultiLineString
Implements
Inherited Members

Constructors

MultiLineString(LineString[])

Constructs a MultiLineString.

public MultiLineString(LineString[] lineStrings)

Parameters

lineStrings LineString[]

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.

MultiLineString(LineString[], GeometryFactory)

Constructs a MultiLineString.

public MultiLineString(LineString[] lineStrings, GeometryFactory factory)

Parameters

lineStrings LineString[]

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

factory GeometryFactory

Fields

Empty

Represents an empty MultiLineString.

public static readonly MultiLineString Empty

Field Value

MultiLineString

Properties

Boundary

public override Geometry Boundary { get; }

Property Value

Geometry

BoundaryDimension

public override Dimension BoundaryDimension { get; }

Property Value

Dimension

Dimension

public override Dimension Dimension { get; }

Property Value

Dimension

GeometryType

Returns the name of this object's interface.

public override string GeometryType { get; }

Property Value

string

"MultiLineString"

IsClosed

Gets a value indicating whether this instance is closed.

public bool IsClosed { get; }

Property Value

bool

true if this instance is closed; otherwise, false.

OgcGeometryType

Gets the OGC geometry type

public override OgcGeometryType OgcGeometryType { get; }

Property Value

OgcGeometryType

SortIndex

Gets a value to sort the geometry

protected override Geometry.SortIndexValue SortIndex { get; }

Property Value

Geometry.SortIndexValue

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

CopyInternal()

protected override Geometry CopyInternal()

Returns

Geometry

EqualsExact(Geometry, double)

public override bool EqualsExact(Geometry other, double tolerance)

Parameters

other Geometry
tolerance double

Returns

bool

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.

[Obsolete("Call Geometry.Reverse()")]
public override Geometry Reverse()

Returns

Geometry

a MultiLineString in the reverse order.

ReverseInternal()

protected override Geometry ReverseInternal()

Returns

Geometry