Parses central meridian from the provided string, assuming that the DegreesMinutesSecondsDirection (DMS) format is in use.
true - the function succeeds, false - it fails
The function verifies validity of its arguments and parsing results. The valid precision is an integer number in the range from 0 (inclusive) to 15 (inclusive). The function recognizes the DegreesMinutesSecondsDirection (DMS) format, i.e. DDD MM SS.SSSS [E, W], for example: 77 2 56.4 W.
This sample shows how to call the TM.ParseCentralMeridianInDmsd method from C# code:
string errorMessage = String.Empty;
string str = "77 2 56.4 W";
int precision = 10;
double cmInDeg = Double.NaN;
if (TM.ParseCentralMeridianInDmsd(str, precision, out cmInDeg, out errorMessage))
{
Console.WriteLine("CmInDeg: " + cmInDeg.ToString());
}
else
{
Console.WriteLine(errorMessage);
}