Parses semi major axis A of a reference ellipsoid from the provided string.
true - the function has succeeded, false - it has failed
The function verifies validity of the parsing result. The valid semi major axis A (in meters) is a real number greater than 0.
This sample shows how to call the TM.ParseSemiMajorAxisAInM method from C# code:
string errorMessage = String.Empty;
string str = "6378137";
double semiMajorAxisAInM = Double.NaN;
if (TM.ParseSemiMajorAxisAInM(str, out semiMajorAxisAInM, out errorMessage))
{
Console.WriteLine("Semi major axis A, in m: " + semiMajorAxisAInM.ToString());
}
else
{
Console.WriteLine(errorMessage);
}