Checks if the provided latitude (in decimal degrees) 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 latitude is valid, false - if the latitude is invalid
The valid latitude is a real number in the range from -MaxLat (exclusive) to MaxLat (exclusive). MaxLat is the function of the reference ellipsoid.
This sample shows how to call the TM.IsValidLatitudeInDeg method from C# code:
double semiMajorAxisA = 6378137;
double inverseFlattening = 298.257223563;
string errorMessage = String.Empty;
double latInDeg = 38.889139;
if (TM.IsValidLatitudeInDeg(semiMajorAxisA, inverseFlattening, latInDeg, out errorMessage))
{
Console.WriteLine("Latitude is valid.");
}
else
{
Console.WriteLine(errorMessage);
}
TM Class | ApsGis Namespace | TM.IsValidLatitudeInDeg Overload List