Problem cutting polyline with point.
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start with the cut operator and the Polyline constructor shown in the issue, reproducing the failure with two zero-length cutter polylines created from getNearestCoordinate results. Trace how zero-length cutters are handled and add coverage for cutting a polyline at points on it; done means the requested segment can be obtained without the operator failing.
Written by the indexing model from the issue text.
Description
I'm trying to cut polyline using two points. I use getNearestCoordinate to cast them on polyline. Then I'm creating two cutters:
Polyline cutter1 = new Polyline(castedFirstPoint, castedFirstPoint);
Polyline cutter2 = new Polyline(castedSecondPoint, castedSecondPoint);
The problem is that cut operator fails if cutter len is 0. It would be nice to make such case (polyline, point which lies on poly line) working since I'm not seeing any other way to get part of polyline from firstPoint to secondPoint. Or maybe I'm missing something.
- Dominant language
- Java
- Stars
- 710
- Forks
- 268
- Avg merge
- 7d 23h
- Merged PRs (30d)
- 1
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 Esri/geometry-api-java
-
bug fixed_to_verify
Esri/geometry-api-java#328 · 3 comments · 1 assignee ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
Esri/geometry-api-java#324 · 17 comments · 1 reaction ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Esri/geometry-api-java#321 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 30/100
Esri/geometry-api-java#320 · 1 comment ·
-
cannot reproduce
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Esri/geometry-api-java#316 · 5 comments ·
All issues in Esri/geometry-api-java
Similar issues
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 90/100
apache/cloudstack#14222 ·
-
[BUG]茶杯方块在取茶时会引发崩溃 Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
1.0.0-alpha2 Type/Improvement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
wso2/dpdp-accelerator#272 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
area/frontend
Difficulty 2/5 1-3 hours Newbie friendliness 65/100