LineString Class |
Namespace: Telogis.GeoBase.Geometry
The LineString type exposes the following members.
Name | Description | |
---|---|---|
LineString(LatLon) |
Creates a LineString from the given points.
| |
LineString(String) |
Construct a LineString from WKT.
|
Name | Description | |
---|---|---|
BoundingBox |
Return the minimum-sized BoundingBox encapsulating all the points on this LineString.
(Overrides GeometryBoundingBox.) | |
FirstPoint |
The first point of this LineString.
| |
IsLoop |
Returns true of this LineString forms a connected loop.
A loop has at least 4 points, where the first and last points are equal.
| |
Item |
Gets the nth point from this LineString.
| |
LastPoint |
The last point of this LineString.
| |
Length |
The number of points in this LineString.
| |
Points |
Gets/sets an array of LatLons.
| |
Reverse |
Returns a LineString with the points in the opposite order to this LineString.
| |
WKT |
Returns this LineString in WKT string format.
(Overrides GeometryWKT.) | |
WKTWithZ |
Returns this LineString in WKT string format with Z level.
|
Name | Description | |
---|---|---|
Add |
Add the given point to the end of the LineString.
| |
DistanceTo(LatLon) |
Calculates the shortest distance from the given point to this LineString.
| |
DistanceTo(LatLon, Int32) |
Calculates the shortest distance (in degrees) from the given point to this LineString.
| |
DistanceTo(LatLon, DistanceUnit) |
Calculates the shortest distance from the given point to this LineString.
| |
DistanceTo(LatLon, Int32, DistanceUnit) |
Calculates the shortest distance (in degrees) from the given point to this LineString.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
GetEnumerator |
Enumerate all points in the line string.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
LineLength |
Calculate the length of this LineString in the specified DistanceUnits.
| |
PercentAlong |
Returns the distance that loc is from the start of the linestring, as a percentage.
| |
PythagoreanDistanceTo | Obsolete. | |
QuickDistanceTo |
Calculates the distance (in degrees) from the given point to this LineString.
| |
Substring |
Gets a LineString that is a sub-string of the current LineString.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
// Create a LineString from an array of four <see cref="T:Telogis.GeoBase.LatLon" /> points Telogis.GeoBase.Geometry.LineString newLine = new Telogis.GeoBase.Geometry.LineString( new Telogis.GeoBase.LatLon[] { new Telogis.GeoBase.LatLon(33.594096,-117.741204), new Telogis.GeoBase.LatLon(33.594195,-117.726176), new Telogis.GeoBase.LatLon(33.582902,-117.725361), new Telogis.GeoBase.LatLon(33.582953,-117.740873)} );