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


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

IConversionNotation.GetGeoRefFromCoords Method

Returns the GeoRef description of a point.

[Visual Basic .NET]
Public Function GetGeoRefFromCoords ( _
    ByVal numDigits As Integer, _
    ByVal numericRounding As Boolean _
) As String
[C#]
public string GetGeoRefFromCoords (
    int numDigits,
    bool numericRounding
);
[C++]
HRESULT GetGeoRefFromCoords(
  long numDigits,
  VARIANT_BOOL numericRounding
);
[C++]
Parameters
numDigits 

numDigits is a parameter of type long numericRounding
numericRounding is a parameter of type bool

Product Availability

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

Description

The GetGeoRefFromCoords method returns an alphanumeric 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 World Geographic Reference System (GEOREF) is used for military referencing. More information is at http://earth-info.nga.mil/GandG/coordsys/grids/referencesys.html.

longitude = -100.0
latitude = 40.0
Georef = FJFL000000 (precision is 3 which determines a location to 0.1 minute)

See Also

IConversionNotation Interface