Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On the Problem of Finding Intersection Points for Polylines #320

Open
lxqaoliao opened this issue May 7, 2024 · 1 comment
Open

On the Problem of Finding Intersection Points for Polylines #320

lxqaoliao opened this issue May 7, 2024 · 1 comment

Comments

@lxqaoliao
Copy link

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();
@stolstov
Copy link
Member

stolstov commented May 7, 2024

@lxqaoliao Use OperatorIntersection instead

public abstract GeometryCursor execute(GeometryCursor input_geometries,

See similar issue #301

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants