Class LineString
Represents a one-dimensional object representing a sequence of points and the line segments connecting them.
Assembly: Cassandra.dll
Syntax
[Serializable]
[JsonConverter(typeof(LineStringJsonConverter))]
public class LineString : GeometryBase, ISerializable
Constructors
LineString(params 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
LineString(SerializationInfo, StreamingContext)
Creates a new instance of LineString using a serialization information.
Declaration
protected LineString(SerializationInfo info, StreamingContext context)
Parameters
Properties
GeoCoordinates
Gets the coordinates property for GeoJSON serialization.
Declaration
protected override IEnumerable GeoCoordinates { get; }
Property Value
Overrides
Points
Gets the read-only list of points describing the LineString.
Declaration
public IList<Point> Points { get; }
Property Value
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 |
object |
obj |
|
Returns
Overrides
GetHashCode()
Returns the hash code based on the value of this instance.
Declaration
public override int GetHashCode()
Returns
Overrides
Parse(string)
Declaration
public static LineString Parse(string textValue)
Parameters
Type |
Name |
Description |
string |
textValue |
|
Returns
ToString()
Returns Well-known text (WKT) representation of the geometry object.
Declaration
public override string ToString()
Returns
Overrides
Implements