ApsGis.dll

UTM.IsValidUtmHemisphere Method

Checks if the provided UTM Hemisphere is valid, i.e. it is not undefined and it is not outside its range.

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

Parameters

utmHemisphere
a UTM hemisphere
errorMessage
an error message, passed by reference (out), that contains detailed information in case of the invalid UTM hemisphere

Return Value

true - if the UTM hemisphere is valid, false - if the UTM hemisphere is invalid

Remarks

The valid UTM hemisphere is Northern or Southern.

Example

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

string errorMessage = String.Empty;
UtmHemisphere utmHemisphere = UtmHemisphere.Northern;
            
if (UTM.IsValidUtmHemisphere(utmHemisphere, out errorMessage))
{
    Console.WriteLine("UTM hemisphere is valid.");
}
else
{
    Console.WriteLine(errorMessage);
}

See Also

UTM Class | ApsGis Namespace