Hi,
We are intersecting two circles(buffer geometry), but getting all the x,y coordinates of intersected area. But we need only two point where it has a intersections. Kindly help us. The graphical representation of the problem is given in the attachment also.
geometryService.intersect(
                        [P1_Geometry],
                        P2_Geometry ,
                        function(intersectionObject) {
                            for(var i = 0; i < intersectionObject[0].rings[0].length; i++) {
                             console.log(new Point([
                             intersectionObject[0].rings[0][i][0],
                             intersectionObject[0].rings[0][i][1]
                             ],
                             intersectionObject[0].spatialReference));
                             var symbol = new SimpleMarkerSymbol(SimpleMarkerSymbol.STYLE_CIRCLE, 10, null, new Color([255, 0, 0]));
                             var graphic = new Graphic(new Point([
                             intersectionObject[0].rings[0][i][0],
                             intersectionObject[0].rings[0][i][1]
                             ],
                             intersectionObject[0].spatialReference)
                             , symbol);
                             map.graphics.add(graphic);
                             }
                        },
                        function(){console.log(arguments)}
                );
Solved! Go to Solution.
Thank you. I think it will work. will try
How about converting your original P1_Geometry and P2_Geometry into polylines first? The result of your intersection should then only contain the two points you need
Thank you. I think it will work. will try
