turf.voronoi report an error:Cannot read properties of null (reading '0')
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript, typescript
- Domain
- data
Research direction
Start at the turf.voronoi entry point and reproduce the error with the supplied points and bbox, paying particular attention to the two nearly identical coordinates. Trace the failing Voronoi calculation and add or update a regression test for this input; done means the call no longer throws and returns Voronoi polygons.
Written by the indexing model from the issue text.
Description
When I used turf.voronoi to generate Voronoi polygons, the following error occurred:
Uncaught TypeError: Cannot read properties of null (reading '0')
at turf.min.js:80:68643
at new Ra (turf.min.js:80:69303)
at r (turf.min.js:88:412086)
at r.polygons (turf.min.js:88:412247)
at t.voronoi (turf.min.js:88:412923)
at turf.html:174:30
this points will report an error.the problem is [119.33893, 25.731901] and [119.338931, 25.731901].Could you please see why the error was reported?thanks.
points:
[
[119.365891, 26.049549],
[119.360972, 25.731612],
[119.335263, 25.724399],
[119.345076, 25.703511],
[119.33893, 25.731901],
[119.338931, 25.731901]
]
bbox:
[118.69595817618412, 25.493916216401107, 119.41693595938725, 26.139962823065883]
- Dominant language
- TypeScript
- Stars
- 10.5k
- Forks
- 1k
- Avg merge
- 1h 11m
- Merged PRs (30d)
- 4
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Turfjs/turf
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
-
@turf/boolean-contains
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Similar issues
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P3
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 76/100
-
code-quality refactoring
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
github/gh-aw-firewall#8816 ·
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
vercel/react-tweet#225 ·