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


ILatLonFormat.GetDMS Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (System)  

ILatLonFormat.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,
  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

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

ILatLonFormat Interface | CurrencyFormat Class | IScientificNumberFormat Interface | FractionFormat Class | IPercentageFormat Interface | INumericFormat Interface | IFractionFormat Interface | NumericFormat Class | IAngleFormat Interface | LatLonFormat Class | ICustomNumberFormat Interface | PercentageFormat Class | ILatLonFormat2 Interface | ILatLonFormat Interface | RateFormat Class | IRateFormat Interface | CustomNumberFormat Class | INumberFormat Interface | ScientificFormat Class | AngleFormat Class | esriDMSGridLabelType Constants | IDMSGridLabel Interface | IDMSGridLabel.LabelType Property | ILatLonFormat2 Interface | ILatLonFormat Interface