Show / Hide Table of Contents

Method ToGars

ToGars(MapPoint)

Returns a formatted coordinate string in Global Area Reference System (GARS) notation representing the given MapPoint's location.

Declaration
public static string ToGars(MapPoint point)
Parameters
Type Name Description
MapPoint point

The location to be represented in GARS notation.

Returns
Type Description
System.String

A GARS notation string representing the GARS cell containing the given point.

Remarks

The point must have a SpatialReference set.

Exceptions
Type Condition
System.ArgumentNullException

point is null.

System.ArgumentException

point does not have a spatial reference.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.1 - 200.7
Xamarin.Android100.1 - 100.15
Xamarin.iOS100.1 - 100.15
UWP100.1 - 200.7
In This Article
Back to top Copyright © 2022 Esri.