[fix] some weirdness with the dateline and polygons that have a longitude of exactly 180.0

This commit is contained in:
Al
2016-04-29 19:59:53 -04:00
parent 8cf51378a0
commit 99e634aaba
3 changed files with 11 additions and 5 deletions

View File

@@ -0,0 +1,5 @@
FLOAT_EPSILON = 1e-09
def isclose(a, b, rel_tol=FLOAT_EPSILON, abs_tol=0.0):
return abs(a - b) <= max(rel_tol * max(abs(a), abs(b)), abs_tol)