Class MultiLineString
Implements
Inherited Members
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 SourceMultiLineString(LineString[])
Constructs a MultiLineString.
Declaration
public MultiLineString(LineString[] lineStrings)
Parameters
| Type | Name | Description |
|---|---|---|
| LineString[] | lineStrings | The |
Remarks
For create this Geometry is used a standard GeometryFactory
with PrecisionModel == Floating.
MultiLineString(LineString[], GeometryFactory)
Constructs a MultiLineString.
Declaration
public MultiLineString(LineString[] lineStrings, GeometryFactory factory)
Parameters
| Type | Name | Description |
|---|---|---|
| LineString[] | lineStrings | The |
| GeometryFactory | factory |
Fields
| Edit this page View SourceEmpty
Represents an empty MultiLineString.
Declaration
public static readonly MultiLineString Empty
Field Value
| Type | Description |
|---|---|
| MultiLineString |
Properties
| Edit this page View SourceBoundary
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 |
Overrides
| Edit this page View SourceBoundaryDimension
Declaration
public override Dimension BoundaryDimension { get; }
Property Value
| Type | Description |
|---|---|
| Dimension |
Overrides
| Edit this page View SourceDimension
Declaration
public override Dimension Dimension { get; }
Property Value
| Type | Description |
|---|---|
| Dimension |
Overrides
| Edit this page View SourceGeometryType
Returns the name of this object's interface.
Declaration
public override string GeometryType { get; }
Property Value
| Type | Description |
|---|---|
| string | "MultiLineString" |
Overrides
| Edit this page View SourceIsClosed
Gets a value indicating whether this instance is closed.
Declaration
public bool IsClosed { get; }
Property Value
| Type | Description |
|---|---|
| bool |
|
OgcGeometryType
Gets the OGC geometry type
Declaration
public override OgcGeometryType OgcGeometryType { get; }
Property Value
| Type | Description |
|---|---|
| OgcGeometryType |
Overrides
| Edit this page View SourceSortIndex
Gets a value to sort the geometry
Declaration
protected override Geometry.SortIndexValue SortIndex { get; }
Property Value
| Type | Description |
|---|---|
| Geometry.SortIndexValue |
Overrides
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 SourceCopyInternal()
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
| Edit this page View SourceEqualsExact(Geometry, double)
Declaration
public override bool EqualsExact(Geometry other, double tolerance)
Parameters
| Type | Name | Description |
|---|---|---|
| Geometry | other | |
| double | tolerance |
Returns
| Type | Description |
|---|---|
| bool |
Overrides
| Edit this page View SourceHasDimension(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 |
|
Overrides
See Also
| Edit this page View SourceReverse()
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
| Edit this page View SourceReverseInternal()
Declaration
protected override Geometry ReverseInternal()
Returns
| Type | Description |
|---|---|
| Geometry |