Skip to content

Commit

Permalink
Update repair.py
Browse files Browse the repository at this point in the history
Restored some force_polygons options that I shouldn't have deleted before.
  • Loading branch information
jnclelland committed Dec 22, 2023
1 parent b7b5354 commit 35475b7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions maup/repair.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 35475b7

Please sign in to comment.