Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update smart_repair.py #94

Merged
merged 4 commits into from
Dec 22, 2023
Merged

Update smart_repair.py #94

merged 4 commits into from
Dec 22, 2023

Conversation

jnclelland
Copy link
Collaborator

(1) Added code to detect and handle an unusual configuration of polygons around a gap that wasn't covered before;
(2) Added the ability for the user to control the precision of the grid to snap coordinates to;
(3) Added a check/fix for empty geometries.

jnclelland and others added 4 commits December 21, 2023 13:50
(1) Added code to detect and handle an unusual configuration of polygons around a gap that wasn't covered before;
(2) Added the ability for the user to control the precision of the grid to snap coordinates to;
(3) Added a check/fix for empty geometries.
Incorporate changes from pull request #91.  New function is called "make_valid_polygons" rather than "make_valid" to avoid conflict with Shapely's make_valid function, and default value for force_polygons has been set to True.

Default value for force_polygons in autorepair/quick_repair is still set to False and make_valid is used throughout by default; if force_polygons is set to True, then make_valid_polygons is used throughout instead of make_valid.
Restored some force_polygons options that I shouldn't have deleted before.
Copy link
Collaborator

@peterrrock2 peterrrock2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This all looks good! Note for documentation / credit: used some of the code created by @coreyryanhanson in a previous version of Maup to fix some of the issues caused by line segments. See documentation in PR#91

@peterrrock2 peterrrock2 merged commit d71150f into master Dec 22, 2023
17 checks passed
@peterrrock2 peterrrock2 deleted the 2.0.1 branch February 12, 2024 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants