This document is archived and information here might be outdated.  Recommended version.


ILatLonFormat2.GetDMS Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (System)  

ILatLonFormat2.GetDMS Method

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,
  System.Int32* degrees,
  System.Int32* Minutes,
  System.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*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

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.

See Also

ILatLonFormat2 Interface