From de9f3120c8e573a3a1f7fbcedb2c3bf136fceb09 Mon Sep 17 00:00:00 2001 From: Al Date: Mon, 23 Nov 2015 15:43:23 -0500 Subject: [PATCH] [polygons] Trying a slightly higher value for buffer() as suggested by this issue https://github.com/Toblerity/Shapely/issues/277 --- scripts/geodata/polygons/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/geodata/polygons/index.py b/scripts/geodata/polygons/index.py index 50fbae2d..5d50d0f5 100644 --- a/scripts/geodata/polygons/index.py +++ b/scripts/geodata/polygons/index.py @@ -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