Skip to content

Fixing line-overlap missing certain horizontal/vertical lines (#2582)#3071

Open
jonovotny wants to merge 4 commits into
Turfjs:masterfrom
jonovotny:line-overlap-fix-(#2582)
Open

Fixing line-overlap missing certain horizontal/vertical lines (#2582)#3071
jonovotny wants to merge 4 commits into
Turfjs:masterfrom
jonovotny:line-overlap-fix-(#2582)

Conversation

@jonovotny

Copy link
Copy Markdown

Line-overlap now detects overlap in horizontal and vertical segments with a parallel offset within tolerance (fixing #2582). Previously bounding boxes in the rbush tree would not overlap in these edge cases. By expanding the bbox around matching segments by the tolerance this issue should be resolved.

Added a test case of two polygons with horizontal and vertical overlap. (#2580 remains a problem and may still lead to missing segments for a different reason.)

jonovotny added 4 commits May 29, 2026 12:54
line-overlap now detects overlap in horizontal and vertical sections with a parallel offset within tolerance. Previously bounding boxes in the rbush tree would not overlap in these edge cases. By expanding the bbox around matching segments by the tolerance this issue is fixed.
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