Parses TM Y from the provided string for the user defined reference ellipsoid.
true - the function has succeeded, false - it has failed
The function verifies validity of its arguments and the parsing result. The valid semi major axis A (in meters) is a real number greater than 0. The valid inverse flattening is a real number greater than 0. The valid TM Y is a real number in the range from -MaxY (inclusive) and MaxY (inclusive). MaxLat is the function of the reference ellipsoid.
This sample shows how to call the TM.ParseTmYInM method from C# code:
string errorMessage = String.Empty;
double semiMajorAxisA = 6378137;
double inverseFlattening = 298.257223563;
string str = "1114120.60285998";
double yInM = Double.NaN;
if (TM.ParseTmYInM(semiMajorAxisA, inverseFlattening, str, out yInM, out errorMessage))
{
Console.WriteLine("Y, in m: " + yInM.ToString());
}
else
{
Console.WriteLine(errorMessage);
}