Click or drag to resize

CoordinateSet_Datum Method (Earth_Ellipsoid_Spec)

Set a custom datum for coordinate conversions and distance calculation. Objects must be loaded prior to setting if EagerLoading is turned off or else the items Datum won't be set. Use overload if EagerLoading options are used.

Namespace:  CoordinateSharp
Assembly:  CoordinateSharp (in CoordinateSharp.dll) Version: 2.12.1.1
Syntax
C#
public void Set_Datum(
	Earth_Ellipsoid_Spec spec
)

Parameters

spec
Type: CoordinateSharpEarth_Ellipsoid_Spec
Earth ellipsoid spec
Examples
The following example demonstrates how to set the earths ellipsoid values for UTM/MGRS and ECEF conversion as well as Distance calculations that use ellipsoidal earth values.
//Initialize a coordinate with the default WGS84 Ellipsoid.
Coordinate c = new Coordinate(25,25);

//Change Ellipsoid to GRS80 Datum
c.Set_Datum(Earth_Ellipsoid_Spec.GRS80_1979);
See Also