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


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

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,
  BSTR* DDString
);
[C++]

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

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