Parses UTM Y from the provided string for a reference ellipsoid.
true - the function has succeeded, false - it has failed
The function verifies validity of the parsing result. The valid semi major axis A (in meters) is a real number greater than 0. The valid inverse flattening is a real number greater than 0. The valid UTM Y is a real number in the range between -MaxY and MaxY. MaxY is the function of the reference ellipsoid, the UTM hemisphere and UTM zone. 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.ParseUtmYInM method from C# code:
string errorMessage = String.Empty;
double semiMajorAxisA = 6378137;
double inverseFlattening = 298.257223563;
UtmHemisphere utmHemisphere = UtmHemisphere.Northern;
UtmZone utmZone = UtmZone.Zone_18_from_78W_to_72W;
string str = "4132123.34079525";
double yInM = Double.NaN;
if (UTM.ParseUtmYInM(semiMajorAxisA, inverseFlattening, utmZone, utmHemisphere, str, out yInM, out errorMessage))
{
Console.WriteLine("Y, in m: " + yInM.ToString());
}
else
{
Console.WriteLine(errorMessage);
}
UTM Class | ApsGis Namespace | UTM.ParseUtmYInM Overload List