ApsGis.dll

Cartesian.IsValidCartesianZInM Method

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.

public static bool IsValidCartesianZInM(
   double zInM,
   out string errorMessage
);

Parameters

zInM
a Cartesian Z (in meters) to validate
errorMessage
an error message, passed by reference (out), that contains detailed information in case of the invalid Cartesian Z

Return Value

true - if the Cartesian Z is valid, false - if the Cartesian Z is invalid

Remarks

The valid Cartesian Z is a real number.

Example

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);
}

See Also

Cartesian Class | ApsGis Namespace