UniversalTransverseMercatorTryParse(String, Double, Double, UniversalTransverseMercator) Method

Attempts to parse a string into an UTM coordinate.

Definition

Namespace: CoordinateSharp
Assembly: CoordinateSharp (in CoordinateSharp.dll) Version: 3.1.1.1
XMLNS for XAML: Not mapped to an xmlns.
C#
public static bool TryParse(
	string value,
	double radius,
	double flattening,
	out UniversalTransverseMercator utm
)

Parameters

value  String
string
radius  Double
Equatorial Radius (Semi-Major Axis)
flattening  Double
Inverse Flattening
utm  UniversalTransverseMercator
UniversalTransverseMercator

Return Value

Boolean
UniversalTransverseMercator

Example

The following example attempts to parse a UTM coordinate set with GRS80 system ellipsoid values.
C#
UniversalTransverseMercator utm;
if(!UniversalTransverseMercator.TryParse("16U 500872mE 5505009mN", 6378137.0, 298.257222101, out utm))
{
    Console.WriteLine(utm);//16U 500872mE 5505009mN
}

See Also