Parses longitude from the provided string, assuming that the DecimalDegrees (DD) format is in use.
true - the function has succeeded, false - it has failed
The function verifies validity of its arguments and parsing results. The function recognizes the DecimalDegrees (DD) format, for example: 38.889139;.
This sample shows how to call the Geodetic.Longitude.ParseLongitudeInDeg method from C# code:
string errorMessage = String.Empty;
string str = "38.889139;";
double lonInDeg = Double.NaN;
if (Geodetic.Longitude.ParseLongitudeInDeg(str, out lonInDeg, out errorMessage))
{
Console.WriteLine("LatInDeg: " + lonInDeg.ToString());
}
else
{
Console.WriteLine(errorMessage);
}