Can you please tell us how retrieve intersecting point?

323
1
10-05-2020 04:19 AM
GirishchandraY
New Contributor II

Hello Team,

I have one line and one geometry from current view point.

I want to get a point where it is being intersected.

I have tried to use GeometryEngine intersection method but it is returning a polyline Geometry...Is there a way out?

Thanks,

Girish

0 Kudos
1 Reply
by Anonymous User
Not applicable

Hi there Girish.

For intersection operations, the returned structure will always be of the dimensionality of the lowest dimension structure involved in the intersection, (in this case, a polyline)

However, there is a very similar method that will allow you to access other dimensionalities, including points.

See : GeometryEngine Class | ArcGIS for Developers (Intersections method)

The intersections method will return a list of geometries of all possible dimensionalities for which there are intersections. There is a handy table there in the documentation you can refer to, showing how a Polyline and Envelope intersection will return a Multipoint, which I believe you'll be able to query to get what you're looking for.

I hope this helps.
Elliot.

0 Kudos