Checks if the provided longitude (in decimal degrees) is valid.
true - if the longitude is valid, false - if it is invalid
The valid longitude is a real number in the range from -180.0 (inclusive) to 180.0 (inclusive).
This sample shows how to call the ApsNadcon.IsValidLongitude method from C# code:
double lonInDeg = -120.1313;
string errorMessage = String.Empty;
if (ApsNadcon.IsValidLongitude(lonInDeg, out errorMessage))
{
Console.WriteLine("Longitude is valid.");
}
else
{
Console.WriteLine(errorMessage);
}
ApsNadcon Class | ApsNadcon Namespace