ApsGis.dll

Cartesian.ParseCartesianYInM Method

Parses Cartesian Y from the provided string.

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

Parameters

str
a string to be parsed
yInM
the parsed Cartesian Y, passed by reference (out)
errorMessage
an error message, passed by reference (out), that contains detailed error / warning information

Return Value

true - the function has succeeded, false - it has failed

Remarks

The function verifies validity of the parsing result. The valid Cartesian Y is a real number.

Example

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

 string errorMessage = String.Empty;
 
 string str = "-4844685.62652945";
 double yInM = Double.NaN;

 if (Cartesian.ParseCartesianYInM(str, out yInM, out errorMessage))
 {
     Console.WriteLine("Y, in m: " + yInM.ToString());
 }
 else
 {
     Console.WriteLine(errorMessage);
 }
 

See Also

Cartesian Class | ApsGis Namespace