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


IConversionNotation.GetDDFromCoords 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.GetDDFromCoords Method
ArcGIS Developer Help

IConversionNotation.GetDDFromCoords Method

Returns the decimal degrees description of a point.

[Visual Basic .NET]
Public Function GetDDFromCoords ( _
    ByVal precision As Integer _
) As String
[C#]
public string GetDDFromCoords (
    int precision
);
[C++]
HRESULT GetDDFromCoords(
  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 GetDDFromCoords 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 decimal degrees and have direction (hemisphere) information. The precision parameter controls the number of decimal places used in the output values. The sample output below has a precision of 6.

longitude = -100.0
latitude = 40.0
Output = "40.000000N 100.000000W"

See Also

IConversionNotation Interface