[polygons] Trying a slightly higher value for buffer() as suggested by this issue https://github.com/Toblerity/Shapely/issues/277

This commit is contained in:
Al
2015-11-23 15:43:23 -05:00
parent 6d20d7348f
commit de9f3120c8

View File

@@ -92,7 +92,7 @@ class PolygonIndex(object):
Coerce to valid polygon
'''
if not poly.is_valid:
poly = poly.buffer(0)
poly = poly.buffer(cls.simplify_tolerance)
if not poly.is_valid:
return None
return poly