This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > System > ESRI.ArcGIS.esriSystem > Interfaces > IL > ILatLonFormat2 Interface > ILatLonFormat2.GetDMS Method (ArcObjects .NET 10.5 SDK) |
Obtains the degrees, minutes, and seconds for a lat/lon number.
[Visual Basic .NET] Public Sub GetDMS ( _ ByVal Value As Double, _ ByRef degrees As Integer, _ ByRef Minutes As Integer, _ ByRef Seconds As Double _ )
[C#] public void GetDMS ( double Value, ref int degrees, ref int Minutes, ref double Seconds );
[C++]
HRESULT GetDMS(
double Value,
long* degrees,
long* Minutes,
double* Seconds
);
[C++]
Parameters Value [in] Value is a parameter of type double degrees [out] degrees is a parameter of type long Minutes [out] Minutes is a parameter of type long Seconds [out] Seconds is a parameter of type double
The GetDMS method returns the degrees, minutes, and seconds values for a given decimal degree latitudinal or longitudinal value.
To use it you should pass in the input decimal degree value and also pass in three double values representing the output degrees, minutes, and seconds that will be populated by the method.