Click or drag to resize

UniversalTransverseMercatorTryParse Method (String, Earth_Ellipsoid_Spec, UniversalTransverseMercator)

Attempts to parse a string into an UTM coordinate.

Namespace:  CoordinateSharp
Assembly:  CoordinateSharp (in CoordinateSharp.dll) Version: 2.12.1.1
Syntax
C#
public static bool TryParse(
	string value,
	Earth_Ellipsoid_Spec spec,
	out UniversalTransverseMercator utm
)

Parameters

value
Type: SystemString
string
spec
Type: CoordinateSharpEarth_Ellipsoid_Spec
Earth_Ellipsoid_Spec
utm
Type: CoordinateSharpUniversalTransverseMercator
UniversalTransverseMercator

Return Value

Type: Boolean
UniversalTransverseMercator
Examples
The following example attempts to parse a UTM coordinate set with a GRS80 system ellipsoid.
UniversalTransverseMercator utm;
if(!UniversalTransverseMercator.TryParse("16U 500872mE 5505009mN", Earth_Ellipsoid_Spec.GRS80_1979, out utm))
{
    Console.WriteLine(utm);//16U 500872mE 5505009mN
}
See Also