Checks if the provided TM Y (in meters) is valid for the user defined reference ellipsoid, i.e. if it can be used in GIS calculations in the TM coordinate system.
true - if the TM Y is valid, false - if the TM Y is invalid
The function checks validity of its arguments. 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 between - MaxY and MaxY. MaxY is the function of the reference ellipsoid.
This sample shows how to call the TM.IsValidTmYInM method from C# code:
double semiMajorAxisA = 6378137;
double inverseFlattening = 298.257223563;
string errorMessage = String.Empty;
double yInM = 1234567.98765;
if (TM.IsValidTmYInM(semiMajorAxisA, inverseFlattening, yInM, out errorMessage))
{
Console.WriteLine("TM Y is valid.");
}
else
{
Console.WriteLine(errorMessage);
}
TM Class | ApsGis Namespace | TM.IsValidTmYInM Overload List