Skip to content

Fix issue 2824 on turf-point-to-polygon-distance#2845

Merged
smallsaucepan merged 7 commits intoTurfjs:masterfrom
LHBruneton-C2C:fix-issue-2824
Nov 9, 2025
Merged

Fix issue 2824 on turf-point-to-polygon-distance#2845
smallsaucepan merged 7 commits intoTurfjs:masterfrom
LHBruneton-C2C:fix-issue-2824

Conversation

@LHBruneton-C2C
Copy link
Copy Markdown
Contributor

Fixes #2824

A single case of the the computation was returning an incorrectly signed result:

  • polygon
  • with holes
  • inside the polygon, outside the holes

A fixture has been added to pinpoint this exact case.

This case has been fixed to return the correctly signed result.

Copy link
Copy Markdown
Member

@smallsaucepan smallsaucepan left a comment

Choose a reason for hiding this comment

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

Fantastic! Thanks for tracking down and fixing the problem @LHBruneton-C2C

@smallsaucepan smallsaucepan merged commit 9edc247 into Turfjs:master Nov 9, 2025
3 checks passed
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.

pointToPolygonDistance with hole return unsigned values

2 participants