Click or drag to resize

ECEFSet_GeoDetic_Height Method

Sets Geodetic height for ECEF conversion.

Namespace:  CoordinateSharp
Assembly:  CoordinateSharp (in CoordinateSharp.dll) Version: 2.3.1.1
Syntax
C#
public void Set_GeoDetic_Height(
	Coordinate coordinate,
	Distance distance
)

Parameters

coordinate
Type: CoordinateSharpCoordinate
Geodetic coordinate
distance
Type: CoordinateSharpDistance
Height above Mean Sea Level
Remarks
Setting the height will trigger ECEF values to recalculate.
Examples
The following example demonstrates how to set the height above MSL 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 MSL.
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 MSL
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
See Also