Stop using shapely's almost_equals.

The docs say it was deprecated in favor of equals_exact with an explicit
tolerance.
This commit is contained in:
Dan Albert 2022-10-15 17:19:46 -07:00
parent 59af080bfb
commit b482dbb031

View File

@ -59,7 +59,9 @@ class NavPoint:
if not isinstance(other, NavPoint):
return False
if not self.point.almost_equals(other.point):
# The tolerance value used here is the same that was used by the now deprecated
# almost_equals.
if not self.point.equals_exact(other.point, 0.5 * 10 ** (-6)):
return False
return self.poly == other.poly