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


IConversionNotation.GetDDMFromCoords Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IC > IConversionNotation Interface > IConversionNotation.GetDDMFromCoords Method
ArcGIS Developer Help

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
);
[C++]
Parameters
precision 

precision is a parameter of type long

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