ApsGis.dll

Cartesian.IsValidCartesianYInM Method

Checks if the provided Cartesian Y (in meters) is valid, i.e. if it can be used in GIS calculations in the Cartesian coordinate system.

public static bool IsValidCartesianYInM(
   double yInM,
   out string errorMessage
);

Parameters

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

Return Value

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

Remarks

The valid Cartesian Y is a real number.

Example

This sample shows how to call the Cartesian.IsValidCartesianYInM method from C# code:

string errorMessage = String.Empty;
double yInM = 1234567.98765;
            
if (Cartesian.IsValidCartesianYInM(yInM, out errorMessage))
{
    Console.WriteLine("Cartesian Y is valid.");
}
else
{
    Console.WriteLine(errorMessage);
}

See Also

Cartesian Class | ApsGis Namespace