Checks if the provided Cartesian Z (in meters) is valid, i.e. if it can be used in GIS calculations in the Cartesian coordinate system.
true - if the Cartesian Z is valid, false - if the Cartesian Z is invalid
The valid Cartesian Z is a real number.
This sample shows how to call the Cartesian.IsValidCartesianZInM method from C# code:
string errorMessage = String.Empty;
double zInM = 1234567.98765;
if (Cartesian.IsValidCartesianZInM(zInM, out errorMessage))
{
Console.WriteLine("Cartesian Z is valid.");
}
else
{
Console.WriteLine(errorMessage);
}