From 35475b7ced93f9e9fae1f627bff3711438e4ba44 Mon Sep 17 00:00:00 2001 From: jnclelland Date: Fri, 22 Dec 2023 10:44:04 -0700 Subject: [PATCH] Update repair.py Restored some force_polygons options that I shouldn't have deleted before. --- maup/repair.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/maup/repair.py b/maup/repair.py index 4c592b2..74595b9 100644 --- a/maup/repair.py +++ b/maup/repair.py @@ -195,9 +195,11 @@ def autorepair(geometries, relative_threshold=0.1, force_polygons=False): if force_polygons: geometries = make_valid_polygons(remove_repeated_vertices(geometries)) geometries = make_valid_polygons(resolve_overlaps(geometries, - relative_threshold=relative_threshold)) + relative_threshold=relative_threshold, + force_polygons=force_polygons)) geometries = make_valid_polygons(close_gaps(geometries, - relative_threshold=relative_threshold)) + relative_threshold=relative_threshold, + force_polygons=force_polygons)) else: geometries = remove_repeated_vertices(geometries).make_valid() geometries = resolve_overlaps(geometries, relative_threshold=relative_threshold).make_valid()