GeometryEngine.intersect

4934
2
Jump to solution
04-12-2016 03:46 AM
AhmetEmre
New Contributor III

I have 2 polylines in my arcgis java code, I want to find intersection points of these 2 lines, but I can not:

Polyline intersection = (Polyline)GeometryEngine.intersect(polyline, polyline2, srMap);

System.out.println(intersection.getPointCount());

System.out.println(GeometryEngine.intersects(polyline, polyline2, srMap));

First print line returns 0 but the second print line returns true. How I can get thouse intersection points in arcgis?

0 Kudos
1 Solution

Accepted Solutions
nita14
by
Occasional Contributor III

Just try to follow this sample code and make sure the input geometries share the same coordinate system:

Intersect | ArcGIS for Developers

Hope this helps,

Adam

View solution in original post

2 Replies
nita14
by
Occasional Contributor III

Just try to follow this sample code and make sure the input geometries share the same coordinate system:

Intersect | ArcGIS for Developers

Hope this helps,

Adam

AhmetEmre
New Contributor III

Thank you Adam.

0 Kudos