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
String

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

Remarks

The point must have a SpatialReference set.

Exceptions
Type Condition
ArgumentNullException

point is null.

ArgumentException

point does not have a spatial reference.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.0
.NET 6.0100.13 - 200.0
.NET 6.0 Windows100.13 - 200.0
.NET 6.0 Android200
.NET 6.0 iOS200
.NET Framework100.1 - 200.0
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Android100.1 - 100.15
iOS100.1 - 100.15
UWP100.1 - 200.0
In This Article
Back to top Copyright © 2022 Esri.