Checks if the provided distance is valid, i.e. if it can be used in GIS calculations in the Geodetic coordinate system.
true - if the distance is valid, false - if the distance is invalid
The valid distance is a real number greater or equal to zero.
This sample shows how to call the Geodetic.IsValidDistanceInM method from C# code:
string errorMessage = String.Empty;
double distanceInM = 100;
if (Geodetic.IsValidDistanceInM(distanceInM, out errorMessage))
{
Console.WriteLine("Distance is valid.");
}
else
{
Console.WriteLine(errorMessage);
}