[polygons/osm] Switching back to buffer(0). Still destroys many polygons, may need to look into another solution
This commit is contained in:
@@ -92,7 +92,7 @@ class PolygonIndex(object):
|
|||||||
Coerce to valid polygon
|
Coerce to valid polygon
|
||||||
'''
|
'''
|
||||||
if not poly.is_valid:
|
if not poly.is_valid:
|
||||||
poly = poly.buffer(cls.simplify_tolerance)
|
poly = poly.buffer(0)
|
||||||
if not poly.is_valid:
|
if not poly.is_valid:
|
||||||
return None
|
return None
|
||||||
return poly
|
return poly
|
||||||
|
|||||||
Reference in New Issue
Block a user