Checks if the provided TM X (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 X is valid, false - if the TM X 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 X is a real number in the range between - MaxX (inclusive) and MaxX (inclusive). MaxX is the function of the reference ellipsoid.
This sample shows how to call the TM.IsValidTmXInM method from C# code:
double semiMajorAxisA = 6378137;
double inverseFlattening = 298.257223563;
string errorMessage = String.Empty;
double xInM = 1234567.98765;
if (TM.IsValidTmXInM(semiMajorAxisA, inverseFlattening, xInM, out errorMessage))
{
Console.WriteLine("TM X is valid.");
}
else
{
Console.WriteLine(errorMessage);
}
TM Class | ApsGis Namespace | TM.IsValidTmXInM Overload List