equals static method

bool equals({
  1. required Geometry geometry1,
  2. required Geometry geometry2,
})

Tests if two geometries are equal.

The geometries are equal if they have the same spatial reference systems, geometry type, points and occupy the same space. For a more strict comparison of the two geometries use Geometry.==.

Supports true curves.

Parameters:

  • geometry1 — A geometry object.
  • geometry2 — Another geometry object.

Return Value: True if the two geometries are equal, false otherwise.

Implementation

static bool equals({
  required Geometry geometry1,
  required Geometry geometry2,
}) {
  _initializeArcGISEnvironmentIfNeeded();
  return _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_GeometryEngine_equals(
      geometry1._handle,
      geometry2._handle,
      errorHandler,
    );
  });
}