Skip to content

Fixed cleanCoords to remove points with appropriate tenacity#2771

Merged
smallsaucepan merged 7 commits into
Turfjs:masterfrom
smallsaucepan:clean-coords-fixes
Jan 23, 2025
Merged

Fixed cleanCoords to remove points with appropriate tenacity#2771
smallsaucepan merged 7 commits into
Turfjs:masterfrom
smallsaucepan:clean-coords-fixes

Conversation

@smallsaucepan

@smallsaucepan smallsaucepan commented Dec 16, 2024

Copy link
Copy Markdown
Contributor

In certain cases cleanCoords was being too aggressive when it removed points.

In other cases, if the start point of a polygon was a valid point to remove, it wasn't being discarded.

Resolves #2305
Resolves #2406
Resolves #2740

Please provide the following when creating a PR:

  • Meaningful title, including the name of the package being modified.
  • Summary of the changes.
  • Heads up if this is a breaking change.
  • Any issues this resolves.
  • Inclusion of your details in the contributors field of package.json - you've earned it! 👏
  • Confirmation you've read the steps for preparing a pull request.

…er with lines that retrace or pass back through their origin. Note depends on PR Turfjs#2751 to be merged first as part of the problem was booleanPointOnLine misbehaving.
…was one of the points that should be cleaned.
…gment was causing errors - started checking number of points before doing other tests. Replaced our own booleanEquals with external geojsonEquality. booleanEquals uses cleanCoords, which we're using to check ... cleanCoords. Fixed a couple of linting issues.
Comment thread pnpm-lock.yaml
@smallsaucepan
smallsaucepan merged commit 504bfea into Turfjs:master Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants