Use Winding Number for Point-In-Ring

Open
#180 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
32/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Stale
Tech stack
go

Research direction

Start by locating the point-in-ring implementation and its tests, then compare the current intersection-count parity check with the winding number algorithm linked in the issue. Check how the implementation handles ring boundaries and unusual ring shapes before changing the algorithm. Done means the winding number approach preserves the existing point-in-ring behavior and its tests pass.

Written by the indexing model from the issue text.

Description

algorithm performance

Currently uses intersection count parity check (between the ring an a ray from the point to the outside of the ray).

The Winding number algorithm here is potentially more performant.

Dominant language
Go
Stars
176
Forks
27
Avg merge
1d 20h
Merged PRs (30d)
6

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from peterstace/simplefeatures

All issues in peterstace/simplefeatures

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.