toGars static method

String toGars(
  1. ArcGISPoint point
)

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

The point must have a spatial reference. Returns null on error.

Parameters:

  • point — The location to be represented in GARS notation.

Return Value: A GARS notation string representing the GARS cell containing the given point.

Implementation

static String toGars(
  ArcGISPoint point,
) {
  _initializeArcGISEnvironmentIfNeeded();
  final stringHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_CoordinateFormatter_toGARS(
      point._handle,
      errorHandler,
    );
  });
  return stringHandle.toDartString();
}