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