Esri / Esri/geometry-api-java

On the Problem of Finding Intersection Points for Polylines

Open
#320 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
710
Forks
269
Avg merge
7d 23h
Merged PRs (30d)
1

Description

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();

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.