ECEFSet_GeoDetic_Height Method
Sets Geodetic height for ECEF conversion.
Namespace: CoordinateSharpAssembly: CoordinateSharp (in CoordinateSharp.dll) Version: 3.1.1.1
XMLNS for XAML: Not mapped to an xmlns.
public void Set_GeoDetic_Height(
Coordinate coordinate,
Distance distance
)
Parameters
- coordinate Coordinate
- Geodetic coordinate
- distance Distance
- Height above Mean Sea Level
Setting the height will trigger ECEF values to recalculate.
The following example demonstrates how to set the height above ellipsoid (HAE) at the geodetic coordinate.
The provided height is used in the conversion from geodetic to ECEF.
//Create a geodetic coordinate at N25, E45 at 0 HAE.
Coordinate c = new Coordinate(25, 45);
//Display converted ECEF values.
Console.WriteLine(c.ECEF); //4089.916 km, 4089.916 km, 2679.074 km
//Set geodetic coordinate height to 1500 meters above HAE
c.ECEF.Set_GeoDetic_Height(c, new Distance(1500, DistanceType.Meters));
//Display new ECEF values.
Console.WriteLine(c.ECEF); //4090.877 km, 4090.877 km, 2679.708 km