Esri / Esri/geometry-api-java

Problem cutting polyline with point.

未关闭
#285 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Java
星标
710
派生
269
平均合并
7 天 23 小时
30 天内合并 PR
1

描述

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.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。