Esri / Esri/geometry-api-java

On the Problem of Finding Intersection Points for Polylines

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

描述

Why is the following code not a point but a line:
SpatialReference s = SpatialReference.create(4450);

Polyline lineA = new Polyline();
lineA.startPath(new Point(352908.85 , 3422574.91));
lineA.lineTo(new Point(352910.00, 3422580.00));

Polyline lineB = new Polyline();
lineB.startPath(new Point(352921.52 , 3422543.38));
lineB.lineTo(new Point(352908.85 , 3422574.91));

Geometry intersection = GeometryEngine.intersect(lineA, lineB, s);
Geometry.Type type = intersection.getType();
System.out.println();

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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