equalsExactWithTol abstract method

bool equalsExactWithTol(
  1. Geometry other,
  2. double tolerance
)

Returns true if the two Geometrys are exactly equal, up to a specified distance tolerance. Two Geometries are exactly equal within a distance tolerance if and only if:

  • they have the same structure
  • they have the same values for their vertices, within the given tolerance distance, in exactly the same order.
This method does not test the values of the GeometryFactory, the SRID, or the userData fields.

To properly test equality between different geometries, it is usually necessary to {@link #normalize()} them first.

@param other the Geometry with which to compare this Geometry @param tolerance distance at or below which two Coordinates are considered equal @return true if this and the other Geometry have identical structure and point values, up to the distance tolerance.

@see #equalsExact(Geometry) @see #normalize() @see #norm()

Implementation

bool equalsExactWithTol(Geometry other, double tolerance);