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