Method LengthGeodetic
LengthGeodetic(Geometry, LinearUnit, GeodeticCurveType)
Gets the geodesic length for the Geometry passed in.
Declaration
public static double LengthGeodetic(Geometry geometry, LinearUnit linearUnit = null, GeodeticCurveType geodeticCurveType = GeodeticCurveType.Geodesic)
Parameters
Type | Name | Description |
---|---|---|
Geometry | geometry | The geometry to calculate the geodesic length for. |
LinearUnit | linearUnit | The linear unit of measurement the length value is returned. If |
GeodeticCurveType | geodeticCurveType | The type of curve to calculate. |
Returns
Type | Description |
---|---|
Double | The calculated geodesic length in meters. |
Remarks
Geodesic length is calculated using only the vertices of the polygon and define the lines between the points as geodesic segments independent of the actual shape of the polygon. A geodesic segment is the shortest path between two points on an ellipsoid. Thus, if you have a line that spans the width of the world, with only two vertices, each on the edges of the map, the geodesic length would be zero (shortest distance between the two vertices).
Supports true curves, calculating the result by densifying curves.
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.0 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 100.15 |