A Perl Port, README (Polygons) and test.js
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 431
- Forks
- 37
- PR merge metrics
- No merged PRs in 30d
Description
A Perl port
https://github.com/aavmurphy/CheapRuler
https://metacpan.org/pod/Geo::CheapRuler
Some clarification on polygons. Is this correct?
Polygons are a series of rings.
The first ring is exterior and clockwise.
Subsequent rings are interior (holes) and anticlockwise.
Do the first and last point of each ring have to be the same?
In `test.js`, in `lineslice` and `lineslicealong`, i needed to add
`const clean_line = turf.cleanCoords( turf.lineString(line) );`
(this removes duplicate adjacent points)
Thank you for CheapRuler!
Andrew
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.
Research direction
Review the README discussion about polygon rings and the Perl port links first. Then inspect test.js, especially lineslice and lineslicealong, and determine whether the cleanCoords change reflects expected behavior. Done means the polygon guidance is settled in the README and the relevant test behavior is verified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, perl
- Domain
- documentation, testing
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100