I am using ArcGIS SDK for .NET and have a graphic overlay defined on my mapview. I added two circles to the map (made with polylines) which overlap. I now need to determine the points at which the two polylines cross.
The GeometryEngine.Intersection() method returns an empty geometry. The GeometryEngine.Crosses() method returns true.
How can I get the points at which the two polylines cross?
Edit: Here is some code that I was trying:
' Get reference to overlay for add operation Dim overlay As GraphicsOverlay = Me.ehMapControl.MapView.GraphicsOverlays.Item("NewLocation") ' Create a graphic object Dim myGraphic as Graphic = New Graphic ' Create a polyline that is a 15 foot circle around "point" Dim myEllipseParams As New GeodesicEllipseParameters(point, 15, LinearUnits.Feet) myEllipseParams.OutGeometryType = GeometryType.Polyline myGraphic.Geometry = GeometryEngine.GeodesicEllipse(myEllipseParams) ' Add polyline to graphics overlay overlay.Graphics.Add(myGraphic) ' Create a second polyline Dim myGraphic2 as graphic = new Graphic ... ' Perform an intersection Dim intsersect = GeometryEngine.Intersection(myGraphic, myGraphic2) ' Doesn't work (returns an empty geometry) Dim isCrossing = GeometryEngine.Crosses(myGraphic, myGraphic2) ' Returns true, so the engine knows the two polylines cross