This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IC > IConversionNotation Interface > IConversionNotation.GetDDFromCoords Method (ArcObjects .NET 10.4 SDK) |
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
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"