Skip to content

[main] Handling shapely error for invalid polygons - #74

Open
nkalfus wants to merge 3 commits into
mainfrom
shapely_polygons_fix
Open

[main] Handling shapely error for invalid polygons#74
nkalfus wants to merge 3 commits into
mainfrom
shapely_polygons_fix

Conversation

@nkalfus

@nkalfus nkalfus commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

Updating segger/src/io/utils.py to handle "shapely.errors.GEOSException: TopologyException: unable to assign free hole to a shell at 4776.5751953125 16494.25" error, as described by @srose89 in #1.

Co-authored-by: srose89 sarose989@gmail.com

@nkalfus
nkalfus requested a review from Tobiaspk July 21, 2026 18:35
@Tobiaspk Tobiaspk changed the title Handling shapely error for invalid polygons [main] Handling shapely error for invalid polygons Jul 21, 2026
@Tobiaspk
Tobiaspk changed the base branch from integration/peerlab to main July 21, 2026 19:09
nkalfus added 3 commits July 27, 2026 14:43
Updating segger/src/io/utils.py to handle "shapely.errors.GEOSException: TopologyException: unable to assign free hole to a shell at 4776.5751953125 16494.25" error, as described by @srose89 in #1.
Removing the try-except section of the function to ensure that either a fixed polygon is returned or an exception is raised.
Making sure the fixed_polygon returned by fix_self_intersection() function is valid.
@Tobiaspk
Tobiaspk force-pushed the shapely_polygons_fix branch from 17eea3c to 2e9fdd0 Compare July 27, 2026 18:44
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.

1 participant