[polygons/osm] Switching back to buffer(0). Still destroys many polygons, may need to look into another solution

This commit is contained in:
Al
2015-11-25 17:10:50 -05:00
parent a50c971732
commit 40d18aa7f6

View File

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