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


IConversionNotation.GetGARSFromCoords Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Geometry)  

IConversionNotation.GetGARSFromCoords Method

Returns the GARS description of a point.

[Visual Basic .NET]
Public Function GetGARSFromCoords ( _
) As String
[C#]
public string GetGARSFromCoords (
);
[C++]
HRESULT GetGARSFromCoords(
  BSTR* GARSString
);
[C++]

Parameters GARSString [out, retval] GARSString is a parameter of type BSTR

Product Availability

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

Description

The GetGARSFromCoords 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 Global Area Reference System (GARS) is used for military referencing. More information is at http://earth-info.nga.mil/GandG/coordsys/grids/gars.html

longitude=-100.0
latitude=40.0
GARS=161LW37

See Also

IConversionNotation Interface