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


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

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

Parameters numDigits numDigits is a parameter of type long numericRounding numericRounding is a parameter of type VARIANT_BOOL GeoRefString [out, retval] GeoRefString is a parameter of type BSTR

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