Class LineString
Represents a one-dimensional object representing a sequence of points and the line segments connecting them.
Implements
ISerializable
Inherited Members
object.Equals(object, object)
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: Cassandra.Geometry
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
Type | Name | Description |
---|---|---|
IList<Point> | points |
LineString(SerializationInfo, StreamingContext)
Creates a new instance of LineString using a serialization information.
Declaration
protected LineString(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | |
StreamingContext | context |
Properties
GeoCoordinates
Gets the coordinates property for GeoJSON serialization.
Declaration
protected override IEnumerable GeoCoordinates { get; }
Property Value
Type | Description |
---|---|
IEnumerable |
Overrides
Points
Gets the read-only list of points describing the LineString.
Declaration
public IList<Point> Points { get; }
Property Value
Type | Description |
---|---|
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 |
---|---|---|
object | obj |
Returns
Type | Description |
---|---|
bool |
Overrides
object.Equals(object)
GetHashCode()
Returns the hash code based on the value of this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int |
Overrides
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 |
---|---|---|
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 |
---|---|
string |
Overrides
object.ToString()
Implements
System.Runtime.Serialization.ISerializable