GeoLineString Class
A line through positions, such as a river, a road or a route.
public sealed class GeoLineString : GeoGeometry- Inheritance
GeoGeometryGeoLineString
Constructors
| Name | Description |
|---|---|
| GeoLineString(IEnumerable<GeoPosition>) | Initializes a new instance of the GeoLineString class. |
GeoLineString(IEnumerable<GeoPosition>)
GeoLineString.csInitializes a new instance of the GeoLineString class.
public GeoLineString(IEnumerable<GeoPosition> positions)Parameters
positionsIEnumerable<GeoPosition>- The positions, in order.
Properties
| Name | Description |
|---|---|
| Positions | Gets the positions, in order. |
| Type | Gets the type of the geometry. |
Positions
GeoLineString.csType
GeoLineString.csMethods
| Name | Description |
|---|---|
| GetLength() | Gets the length of the line, in meters: the sum of the great-circle distances between its positions. |
| GetPositions() | Gets the positions of the geometry: every position of every point, line and ring, in order. |
GetLength()
GeoLineString.csGetPositions()
GeoLineString.csGets the positions of the geometry: every position of every point, line and ring, in order.
public override IEnumerable<GeoPosition> GetPositions()Returns
IEnumerable<GeoPosition> The positions.