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