ApsGis.dll

UTM.ParseUtmHemisphere Method

Parses / determines the UTM hemisphere from the provided string.

public static bool ParseUtmHemisphere(
   string str,
   out UtmHemisphere utmHemisphere,
   out string errorMessage
);

Parameters

str
a string to be parsed
utmHemisphere
the parsed UTM hemisphere, 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

Example

This sample shows how to call the UTM.ParseUtmHemisphere method from C# code:

 string errorMessage = String.Empty;
 
 string str = "38 53 20.9 N";
 
 UtmHemisphere utmHemisphere = UtmHemisphere.NotDefined;

 if (UTM.ParseUtmHemisphere(str, out utmHemisphere, out errorMessage))
 {
     Console.WriteLine(utmHemisphere);
 }
 else
 {
     Console.WriteLine(errorMessage);
 }
 

See Also

UTM Class | ApsGis Namespace