Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

On the Problem of Finding Intersection Points for Polylines

Open
#320 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
30/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
java

Research direction

Start by reproducing the example at GeometryEngine.intersect(lineA, lineB, s) with the supplied coordinates and inspect the returned Geometry.Type. Compare the observed result with the API's expected intersection semantics, then document the explanation or identify the behavior that needs correction.

Written by the indexing model from the issue text.

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();
Dominant language
Java
Stars
710
Forks
268
Avg merge
7d 23h
Merged PRs (30d)
1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Esri/geometry-api-java

All issues in Esri/geometry-api-java

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.