Class LineString
Represents a one-dimensional object representing a sequence of points and the line segments connecting them.
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Dse.Geometry
Assembly: Dse.dll
Syntax
public class LineString : GeometryBase
Constructors
LineString(Point[])
Creates a new instance of LineString using a sequence of points.
Declaration
public LineString(params Point[] points)
Parameters
Type | Name | Description |
---|---|---|
Point[] | points |
LineString(IList<Point>)
Creates a new instance of LineString using a list of points.
Declaration
public LineString(IList<Point> points)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IList<Point> | points |
Properties
GeoCoordinates
Declaration
protected override IEnumerable GeoCoordinates { get; }
Property Value
Type | Description |
---|---|
System.Collections.IEnumerable |
Overrides
Points
Gets the read-only list of points describing the LineString.
Declaration
public IList<Point> Points { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<Point> |
Methods
Equals(Object)
Returns a value indicating whether this instance and a specified object represent the same value.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
System.Object.Equals(System.Object)
GetHashCode()
Returns the hash code based on the value of this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.Object.GetHashCode()
Parse(String)
Creates a LineString instance from a Well-known Text(WKT) representation of a line.
Declaration
public static LineString Parse(string textValue)
Parameters
Type | Name | Description |
---|---|---|
System.String | textValue |
Returns
Type | Description |
---|---|
LineString |
ToString()
Returns Well-known text (WKT) representation of the geometry object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()