Esri / Esri/geometry-api-java

On the Problem of Finding Intersection Points for Polylines

オープン
#320 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Java
スター
710
フォーク
269
平均マージ
7日 23時間
マージ済み PR(30日)
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 を短くまとめたダイジェスト。