CoordinateTryParse(String, CartesianType, Coordinate) Method
Attempts to parse a string into a Coordinate with a specified Cartesian system type.
Namespace: CoordinateSharpAssembly: CoordinateSharp (in CoordinateSharp.dll) Version: 3.1.1.1
XMLNS for XAML: Not mapped to an xmlns.
public static bool TryParse(
string value,
CartesianType cartesianType,
out Coordinate coordinate
)
- value String
- Coordinate string
- cartesianType CartesianType
- Cartesian Type
- coordinate Coordinate
- Coordinate
Booleanboolean
The following example parses an ECEF formatted coordinate string.
Because this is an ECEF Cartesian type coordinate, we will specify the Cartesian system type.
Coordinate c;
if(Coordinate.TryParse("5242.097 km, 2444.43 km, 2679.074 km", CartesianType.Cartesian, out c))
{
Console.WriteLine(c); //N 24º 59' 59.987" E 25º 0' 0.001"
}