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


IConversionNotation.GetDDMFromCoords Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Geometry)  

IConversionNotation.GetDDMFromCoords Method

Returns the degrees decimal minutes description of a point.

[Visual Basic .NET]
Public Function GetDDMFromCoords ( _
    ByVal precision As Integer _
) As String
[C#]
public string GetDDMFromCoords (
    int precision
);
[C++]
HRESULT GetDDMFromCoords(
  long precision,
  BSTR* DDMString
);
[C++]

Parameters precision precision is a parameter of type long DDMString [out, retval] DDMString is a parameter of type BSTR

Product Availability

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

Description

The GetDDMFromCoords method returns a formatted string from a Point that has either geographic or projected coordinates. The Point must have a spatial reference that has a defined coordinate system. The returned values are in degrees and decimal minutes and have direction (hemisphere) information. The precision parameter controls the number of decimal places used in the output decimal minute values. The sample output below has a precision of 4.

longitude=-100.0
latitude=40.0
output="40 00.0000N 100 00.0000W"

See Also

IConversionNotation Interface