Finds UTM zone/s of the specified geodetic coordinate on a reference ellipsoid.
true - the function has succeeded, false - it has failed
The function verifies validity of the input arguments before running the conversion. It takes into account the 40.0 km overlap with the adjacent UTM zones and 0.5 degree overlap with UPS (Univeral Polar Stereographic) projection.
This sample shows how to call the UTM.FindUtmZone method from C# code:
string errorMessage = String.Empty;
double semiMajorAxisA = 6378137;
double inverseFlattening = 298.257223563;
double latInDeg = 38.889139;
double lonInDeg = -77.049;
List<UtmZone> utmZoneList = new List<UtmZone>();
if (UTM.FindUtmZone(semiMajorAxisAInM, inverseFlattening, latInDeg, lonInDeg, out utmZoneList, out errorMessage))
{
Console.WriteLine("Find succeeded.");
}
else
{
Console.WriteLine("Find failed. " + errorMessage);
}
UTM Class | ApsGis Namespace | UTM.FindUtmZone Overload List