Requesting to accept features other than polyon for turf.difference
Open
Nobody has claimed this yet.
@turf/difference
enhancement
jsts
- Dominant language
- TypeScript
- Stars
- 10.5k
- Forks
- 1k
- Avg merge
- 1h 11m
- Merged PRs (30d)
- 4
Description
Given a line and polygon which intersects, i would like to remove the polygon intersecting area from the line.
Example: turf.difference(line, polygon)
But turf doesnt seem to accept a line as input parameter.
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
Start at the turf.difference entry point and review its current accepted geometry types and behavior for polygon inputs. Determine how a line intersecting a polygon should be represented after the difference, then verify that the line-and-polygon example produces the requested result and that existing polygon behavior remains unchanged.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- data
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100