<?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 Number of Points within a Polygon with Arcade in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/number-of-points-within-a-polygon-with-arcade/m-p/54755#M293</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to find the number of points that are inside a polygon and then find the amount within the polygon with a 5 mile buffer. I was able to find the number within the polygon using the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var fsCase = Intersects(FeatureSetByName($datastore, "SanDiegoCasesGeocoded"), $feature);&lt;BR /&gt;var cnt = Count(fsCase);&lt;BR /&gt;return cnt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However when I try to repeat this with a 5 mile buffer I am getting incorrect results. The following script returns a count of 24 points. However if I manually create a buffer around the polygon in ArcPro and select the intersecting points it returns 72.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var &lt;SPAN&gt;fsCase&lt;/SPAN&gt; = Intersects(FeatureSetByName($datastore,"SanDiegoCasesGeocoded"), Buffer($feature, 5, "miles"))&lt;BR /&gt;var cnt = Count(&lt;SPAN&gt;fsCase&lt;/SPAN&gt;);&lt;BR /&gt;return cnt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea what may be the problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Apr 2020 23:51:25 GMT</pubDate>
    <dc:creator>NickArcher1</dc:creator>
    <dc:date>2020-04-08T23:51:25Z</dc:date>
    <item>
      <title>Number of Points within a Polygon with Arcade</title>
      <link>https://community.esri.com/t5/developers-questions/number-of-points-within-a-polygon-with-arcade/m-p/54755#M293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to find the number of points that are inside a polygon and then find the amount within the polygon with a 5 mile buffer. I was able to find the number within the polygon using the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var fsCase = Intersects(FeatureSetByName($datastore, "SanDiegoCasesGeocoded"), $feature);&lt;BR /&gt;var cnt = Count(fsCase);&lt;BR /&gt;return cnt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However when I try to repeat this with a 5 mile buffer I am getting incorrect results. The following script returns a count of 24 points. However if I manually create a buffer around the polygon in ArcPro and select the intersecting points it returns 72.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var &lt;SPAN&gt;fsCase&lt;/SPAN&gt; = Intersects(FeatureSetByName($datastore,"SanDiegoCasesGeocoded"), Buffer($feature, 5, "miles"))&lt;BR /&gt;var cnt = Count(&lt;SPAN&gt;fsCase&lt;/SPAN&gt;);&lt;BR /&gt;return cnt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea what may be the problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2020 23:51:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/number-of-points-within-a-polygon-with-arcade/m-p/54755#M293</guid>
      <dc:creator>NickArcher1</dc:creator>
      <dc:date>2020-04-08T23:51:25Z</dc:date>
    </item>
  </channel>
</rss>

