<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Get intersection of polygon and point graphics in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-intersection-of-polygon-and-point-graphics/m-p/1173675#M77296</link>
    <description>&lt;P&gt;Hello Community, I am trying to get the intersection point of a rectangle sketch and points from another graphics layer. How can I get the graphic points which are selected by this rectangle?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="YogeshSwami_0-1652447202422.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/41308iD023823DF7730937/image-size/medium?v=v2&amp;amp;px=400" role="button" title="YogeshSwami_0-1652447202422.png" alt="YogeshSwami_0-1652447202422.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 13 May 2022 13:11:54 GMT</pubDate>
    <dc:creator>YogeshSwami</dc:creator>
    <dc:date>2022-05-13T13:11:54Z</dc:date>
    <item>
      <title>Get intersection of polygon and point graphics</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-intersection-of-polygon-and-point-graphics/m-p/1173675#M77296</link>
      <description>&lt;P&gt;Hello Community, I am trying to get the intersection point of a rectangle sketch and points from another graphics layer. How can I get the graphic points which are selected by this rectangle?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="YogeshSwami_0-1652447202422.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/41308iD023823DF7730937/image-size/medium?v=v2&amp;amp;px=400" role="button" title="YogeshSwami_0-1652447202422.png" alt="YogeshSwami_0-1652447202422.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 13:11:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-intersection-of-polygon-and-point-graphics/m-p/1173675#M77296</guid>
      <dc:creator>YogeshSwami</dc:creator>
      <dc:date>2022-05-13T13:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: Get intersection of polygon and point graphics</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-intersection-of-polygon-and-point-graphics/m-p/1173913#M77303</link>
      <description>&lt;P&gt;Assuming you already have a reference to the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-GraphicsLayer.html" target="_self"&gt;GraphicsLayer&lt;/A&gt; (graphicsLayer) and the rectangle (geometry) assumed to be a &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polygon.html" target="_self"&gt;Polygon&lt;/A&gt;:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var intersectingFeatures = [];
var extent = geometry.extent;

graphicsLayer.graphics.forEach(function(graphic) {
	if (extent.intersects(graphic.geometry))
		intersectingFeatures.push(graphic);
});

//now do whatever with the intersectingFeatures array&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 19:53:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-intersection-of-polygon-and-point-graphics/m-p/1173913#M77303</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2022-05-13T19:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: Get intersection of polygon and point graphics</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-intersection-of-polygon-and-point-graphics/m-p/1174071#M77313</link>
      <description>&lt;P&gt;Thank you so much&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/6522"&gt;@JoelBennett&lt;/a&gt;&amp;nbsp;. It works.&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2022 06:18:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-intersection-of-polygon-and-point-graphics/m-p/1174071#M77313</guid>
      <dc:creator>YogeshSwami</dc:creator>
      <dc:date>2022-05-16T06:18:12Z</dc:date>
    </item>
  </channel>
</rss>

