CoordinateSet_Datum(Double, Double) Method
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: CoordinateSharpAssembly: CoordinateSharp (in CoordinateSharp.dll) Version: 3.1.1.1
XMLNS for XAML: Not mapped to an xmlns.
public void Set_Datum(
double radius,
double inverseflattening
)
Parameters
- radius Double
- Equatorial Radius
- inverseflattening Double
- Inverse Flattening
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(6378160.000, 298.25);