<?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 Re: Counting points inside a polygon in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/counting-points-inside-a-polygon/m-p/269448#M9299</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;It is attached. You'll need to edit these variables to make it work and the polygon feature class needs an integer field to store the results.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;Points = "D:\\Data\\Geodatabase.gdb\\PointFC"&lt;BR /&gt;Zones = "D:\\Data\\Geodatabase.gdb\\PolygonFC"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;zoneNameField = "NAME"&lt;BR /&gt;zoneIncidentsField = "INCIDENTS"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;Once your paths and field names are stored you can double-click from windows explorer to run anytime you want.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Jan 2016 19:51:09 GMT</pubDate>
    <dc:creator>JimmyKroon</dc:creator>
    <dc:date>2016-01-26T19:51:09Z</dc:date>
    <item>
      <title>Counting points inside a polygon</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/counting-points-inside-a-polygon/m-p/269431#M9282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a fairly "simple" GIS operation but I wanted to ask, is Spatial Join the only, or best, method to calculate this? As described in this article:&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.esri.com/cn/knowledgebase/techarticles/detail/30779" title="http://support.esri.com/cn/knowledgebase/techarticles/detail/30779"&gt;30779 - Count the number of point features within a polygon&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am basically wondering is how to have a continually updated polygon feature that would keep a count of points within it. Does that make sense?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jan 2016 15:32:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/counting-points-inside-a-polygon/m-p/269431#M9282</guid>
      <dc:creator>AdrianWelsh</dc:creator>
      <dc:date>2016-01-26T15:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Counting points inside a polygon</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/counting-points-inside-a-polygon/m-p/269432#M9283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;...and I know there are issues when points fall outside of the polygon. I found this article that discusses using the Proximity tool to calculate that:&lt;/P&gt;&lt;P&gt;&lt;A href="https://blogs.esri.com/esri/arcgis/2013/12/17/point-in-polygon-overlay/" title="https://blogs.esri.com/esri/arcgis/2013/12/17/point-in-polygon-overlay/"&gt;More adventures in overlay: point in polygon | ArcGIS Blog&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jan 2016 15:33:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/counting-points-inside-a-polygon/m-p/269432#M9283</guid>
      <dc:creator>AdrianWelsh</dc:creator>
      <dc:date>2016-01-26T15:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: Counting points inside a polygon</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/counting-points-inside-a-polygon/m-p/269433#M9284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You'd need to re-run the operation for each changed geometry, when it is changed.&amp;nbsp; This sort of thing is better left to a database trigger, but then you'd need to be using an enterprise geodatabase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jan 2016 16:43:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/counting-points-inside-a-polygon/m-p/269433#M9284</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2016-01-26T16:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: Counting points inside a polygon</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/counting-points-inside-a-polygon/m-p/269434#M9285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried using the PointCollection object? I'm not sure what platform you're on, but on the ArcGIS Runtime for .NET there is a PointCollection class in this namespace "&lt;A href="https://developers.arcgis.com/net/store/api-reference//html/N_Esri_ArcGISRuntime_Geometry.htm" style="color: #03697a; font-family: 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif; font-size: 15px;"&gt;Esri.ArcGISRuntime.Geometry&lt;/A&gt;".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could use this to build a collection of points, and then transpose them to a polygon as needed.&amp;nbsp; Keeping track of the MapPoint count should be straightforward at this point.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jan 2016 16:46:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/counting-points-inside-a-polygon/m-p/269434#M9285</guid>
      <dc:creator>WendellThompson</dc:creator>
      <dc:date>2016-01-26T16:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: Counting points inside a polygon</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/counting-points-inside-a-polygon/m-p/269435#M9286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could script the solution with python and then use Windows Task Scheduler to have the operation run every night or more often if needed (every hour, every 30 minutes, or whatever is appropriate for your situation). If python is not your thing one could make it in &lt;A href="http://desktop.arcgis.com/en/desktop/latest/analyze/modelbuilder/what-is-modelbuilder.htm"&gt;model builder&lt;/A&gt; and the &lt;A href="http://desktop.arcgis.com/en/desktop/latest/analyze/modelbuilder/exporting-a-model-to-a-python-script.htm"&gt;export &lt;/A&gt;it to python.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jan 2016 17:29:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/counting-points-inside-a-polygon/m-p/269435#M9286</guid>
      <dc:creator>forestknutsen1</dc:creator>
      <dc:date>2016-01-26T17:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: Counting points inside a polygon</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/counting-points-inside-a-polygon/m-p/269436#M9287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This sounds like something that would still have to replace the feature class with, right? Not something that would be an automatic update?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jan 2016 17:36:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/counting-points-inside-a-polygon/m-p/269436#M9287</guid>
      <dc:creator>AdrianWelsh</dc:creator>
      <dc:date>2016-01-26T17:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: Counting points inside a polygon</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/counting-points-inside-a-polygon/m-p/269437#M9288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was afraid that I would need to re-run it each time. Would a database trigger be something you would script up in Python or so? And do you have to use an enterprise geodatabase for it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jan 2016 17:38:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/counting-points-inside-a-polygon/m-p/269437#M9288</guid>
      <dc:creator>AdrianWelsh</dc:creator>
      <dc:date>2016-01-26T17:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: Counting points inside a polygon</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/counting-points-inside-a-polygon/m-p/269438#M9289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, this might be something that I might have to do, unfortunately. But, it's still sort of a solution...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jan 2016 17:39:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/counting-points-inside-a-polygon/m-p/269438#M9289</guid>
      <dc:creator>AdrianWelsh</dc:creator>
      <dc:date>2016-01-26T17:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: Counting points inside a polygon</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/counting-points-inside-a-polygon/m-p/269439#M9290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As I mentioned, i'm not sure what platform you're working on, but an implementation (in .NET) that comes to mind would be a wrapper class that held a PointCollection as well a Polygon Feature.&amp;nbsp; As the PointCollection was updated, the Polygon would be re-drawn on a graphics layer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jan 2016 17:41:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/counting-points-inside-a-polygon/m-p/269439#M9290</guid>
      <dc:creator>WendellThompson</dc:creator>
      <dc:date>2016-01-26T17:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: Counting points inside a polygon</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/counting-points-inside-a-polygon/m-p/269440#M9291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, database triggers are generally written in SQL (for which this is a relatively simple operation).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jan 2016 17:46:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/counting-points-inside-a-polygon/m-p/269440#M9291</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2016-01-26T17:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Counting points inside a polygon</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/counting-points-inside-a-polygon/m-p/269441#M9292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the geometry is being continually updated, then the time to make the PCOUNT edit is when the shape is updated (together, in one transaction).&amp;nbsp; Updating the counts in batch would only make sense if all the polygons are edited at the same time, in which case you should make all the edits to an intermediate copy, then update the master after the long-running job is complete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jan 2016 17:52:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/counting-points-inside-a-polygon/m-p/269441#M9292</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2016-01-26T17:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: Counting points inside a polygon</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/counting-points-inside-a-polygon/m-p/269442#M9293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm running ArcGIS 10.3.1 Desktop (ArcMap) on Windows 10, 64-bit. I am not sure that I would want a graphics layer as opposed to a feature class within a geodatabase. And, I am not as familiar with .NET as I once was year ago...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jan 2016 17:53:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/counting-points-inside-a-polygon/m-p/269442#M9293</guid>
      <dc:creator>AdrianWelsh</dc:creator>
      <dc:date>2016-01-26T17:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: Counting points inside a polygon</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/counting-points-inside-a-polygon/m-p/269443#M9294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, that makes sense.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jan 2016 17:54:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/counting-points-inside-a-polygon/m-p/269443#M9294</guid>
      <dc:creator>AdrianWelsh</dc:creator>
      <dc:date>2016-01-26T17:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: Counting points inside a polygon</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/counting-points-inside-a-polygon/m-p/269444#M9295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could look into creating a &lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/application_extension/014p00000018000000/"&gt;Python Add-in Application Extension&lt;/A&gt;. See a list of available triggers &lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Application_Extension/014p00000019000000/"&gt;here&lt;/A&gt;. It depends how often you want to run your script, but I expect you would probably want something that triggers fairly regularly, like: onEditorSelectionChanged() or onCurrentTaskChanged&lt;SPAN style="color: #4d4d4d; font-family: Arial, Helvetica, sans-serif; font-size: 12.16px;"&gt;() or onSaveEdits&lt;SPAN style="color: #4d4d4d; font-family: Arial, Helvetica, sans-serif; font-size: 12.16px;"&gt;(). Your script could be as simple as one line within the add-in event method calling &lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Spatial_Join/00080000000q000000/"&gt;Spatial Join&lt;/A&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jan 2016 17:54:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/counting-points-inside-a-polygon/m-p/269444#M9295</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2016-01-26T17:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: Counting points inside a polygon</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/counting-points-inside-a-polygon/m-p/269445#M9296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a simple python script that will count points within polygons and add the count to a field in the polygon feature class. It's pretty simple and you could run it automatically using a batch file and windows scheduler - or just run the script as needed from explorer. If that sounds helpful I'll find and post it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jan 2016 18:17:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/counting-points-inside-a-polygon/m-p/269445#M9296</guid>
      <dc:creator>JimmyKroon</dc:creator>
      <dc:date>2016-01-26T18:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: Counting points inside a polygon</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/counting-points-inside-a-polygon/m-p/269446#M9297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Darren, I'll look into that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jan 2016 19:41:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/counting-points-inside-a-polygon/m-p/269446#M9297</guid>
      <dc:creator>AdrianWelsh</dc:creator>
      <dc:date>2016-01-26T19:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: Counting points inside a polygon</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/counting-points-inside-a-polygon/m-p/269447#M9298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jimmy, that sounds awesome. I would love to see it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jan 2016 19:41:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/counting-points-inside-a-polygon/m-p/269447#M9298</guid>
      <dc:creator>AdrianWelsh</dc:creator>
      <dc:date>2016-01-26T19:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: Counting points inside a polygon</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/counting-points-inside-a-polygon/m-p/269448#M9299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;It is attached. You'll need to edit these variables to make it work and the polygon feature class needs an integer field to store the results.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;Points = "D:\\Data\\Geodatabase.gdb\\PointFC"&lt;BR /&gt;Zones = "D:\\Data\\Geodatabase.gdb\\PolygonFC"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;zoneNameField = "NAME"&lt;BR /&gt;zoneIncidentsField = "INCIDENTS"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial;"&gt;Once your paths and field names are stored you can double-click from windows explorer to run anytime you want.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jan 2016 19:51:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/counting-points-inside-a-polygon/m-p/269448#M9299</guid>
      <dc:creator>JimmyKroon</dc:creator>
      <dc:date>2016-01-26T19:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: Counting points inside a polygon</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/counting-points-inside-a-polygon/m-p/269449#M9300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow thanks! Great script. Those does exactly what I needed it to do. One question though, what is the point of the "zoneNameField" in this? Doesn't the script just cycle through all of the features within that feature class? If some features had the same zone name, would those get counted the same?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 21:37:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/counting-points-inside-a-polygon/m-p/269449#M9300</guid>
      <dc:creator>AdrianWelsh</dc:creator>
      <dc:date>2016-01-27T21:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: Counting points inside a polygon</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/counting-points-inside-a-polygon/m-p/269450#M9301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas;"&gt;zoneNameField is used to build a query which is required to create a feature layer containing one polygon. You could use the objectID field for this value too. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="font-family: Consolas;"&gt;&lt;STRONG&gt;queryString&lt;/STRONG&gt; = '"' + zoneNameField + '" = ' + "'" + zoneName + "'"&lt;/SPAN&gt;
&lt;SPAN style="font-family: Consolas;"&gt;arcpy.MakeFeatureLayer_management(Zones, "CurrentZoneLayer", &lt;STRONG&gt;queryString&lt;/STRONG&gt;)&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas;"&gt;And yes, if you had multiple polygons with the same name, they would get grouped together for the counts because the query would select them all.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 13:11:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/counting-points-inside-a-polygon/m-p/269450#M9301</guid>
      <dc:creator>JimmyKroon</dc:creator>
      <dc:date>2021-12-11T13:11:13Z</dc:date>
    </item>
  </channel>
</rss>

