Converts a latitude in decimal degrees to DMS string.
true - the function has succeeded, false - it has failed
The function verifies validity of its arguments. The valid latitude is a real number in the range from -90 (inclusive) to 90 (inclusive).
This sample shows how to call the Geodetic.Latitude.LatInDegToDmsString method from C# code:
string errorMessage = String.Empty;
double latInDeg = 38.889139;
LatitudeDirection preferredLatDirection = LatitudeDirection.Northern;
int precision = 2;
string str = String.Empty;
if (Geodetic.Latitude.LatInDegToDmsString(latInDeg, preferredLatDirection, precision, out str, out errorMessage))
{
Console.WriteLine("Latitude in degrees: " + latInDeg.ToString());
}
else
{
Console.WriteLine(errorMessage);
}