equals2D method
True if this and other
equals by testing 2D coordinate values of all
position data (that must be in same order in both objects) contained
directly or by child objects.
Returns false if this and other
are not of the same subtype.
Returns false if this or other
contain "empty geometry".
Differences on 2D coordinate values (ie. x and y, or lon and lat) between
this and other
must be within toleranceHoriz
.
Tolerance values must be positive (>= 0.0).
Implementation
@override
bool equals2D(
Geometry other, {
double toleranceHoriz = defaultEpsilon,
}) =>
testEquals2D<MultiPolygon>(
this,
other,
(mp1, mp2) => _testMultiPolygons(
mp1,
mp2,
(posArray1, posArray2) => posArray1.equals2D(
posArray2,
toleranceHoriz: toleranceHoriz,
),
),
toleranceHoriz: toleranceHoriz,
);