<?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 Using Modelbuilder to Automate Select By Location in Mapping Questions</title>
    <link>https://community.esri.com/t5/mapping-questions/using-modelbuilder-to-automate-select-by-location/m-p/556060#M6006</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ive got my map divided into several polygons.&amp;nbsp; I have points located throughout these polygons.&amp;nbsp; Each polygon is a different shape and size and contains a unique number of points.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to extract a count of these points per polygon (output to a .csv format if possible).&amp;nbsp; I know how to do this manually using the Select By Location method but I am trying to build a tool that can do this for me automatically.&amp;nbsp; I have millions of points throughout my map and it takes a few hours doing it manually.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have started building a tool which ends up outputting another point file (that replicates the point file I use as the input)&amp;nbsp; instead of a file that just contains the counts (and other summarized data).&amp;nbsp; Cant seem to figure out what needs to change here?&amp;nbsp; My coordinate system is the same in the input and output.&amp;nbsp; I am using ArcMap 10.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Attached is the picture of my tool as it stands currently and the exported Python Script.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Jan 2013 21:20:46 GMT</pubDate>
    <dc:creator>MashhoodSyed</dc:creator>
    <dc:date>2013-01-04T21:20:46Z</dc:date>
    <item>
      <title>Using Modelbuilder to Automate Select By Location</title>
      <link>https://community.esri.com/t5/mapping-questions/using-modelbuilder-to-automate-select-by-location/m-p/556060#M6006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ive got my map divided into several polygons.&amp;nbsp; I have points located throughout these polygons.&amp;nbsp; Each polygon is a different shape and size and contains a unique number of points.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to extract a count of these points per polygon (output to a .csv format if possible).&amp;nbsp; I know how to do this manually using the Select By Location method but I am trying to build a tool that can do this for me automatically.&amp;nbsp; I have millions of points throughout my map and it takes a few hours doing it manually.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have started building a tool which ends up outputting another point file (that replicates the point file I use as the input)&amp;nbsp; instead of a file that just contains the counts (and other summarized data).&amp;nbsp; Cant seem to figure out what needs to change here?&amp;nbsp; My coordinate system is the same in the input and output.&amp;nbsp; I am using ArcMap 10.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Attached is the picture of my tool as it stands currently and the exported Python Script.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2013 21:20:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/using-modelbuilder-to-automate-select-by-location/m-p/556060#M6006</guid>
      <dc:creator>MashhoodSyed</dc:creator>
      <dc:date>2013-01-04T21:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Using Modelbuilder to Automate Select By Location</title>
      <link>https://community.esri.com/t5/mapping-questions/using-modelbuilder-to-automate-select-by-location/m-p/556061#M6007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;are you comfortable using python? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you could create a cursor to go through your polygon feature class, select the polygon, then do a select by location to get the points overlapped. The selected points can be counted and saved somewhere (text file, fgdb table, dbf etc)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;then you would unselect everything and let your cursor start over with the next polygon&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2013 17:58:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/using-modelbuilder-to-automate-select-by-location/m-p/556061#M6007</guid>
      <dc:creator>JoshuaChan</dc:creator>
      <dc:date>2013-01-17T17:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Using Modelbuilder to Automate Select By Location</title>
      <link>https://community.esri.com/t5/mapping-questions/using-modelbuilder-to-automate-select-by-location/m-p/556062#M6008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: msSOC&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi.&amp;nbsp; Thanks for your reply.&amp;nbsp; I havent used Python yet, but wouldnt mind trying to.&amp;nbsp; Do you know of any sample code I can look at to build a cursor, as you mentioned?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2013 19:17:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/using-modelbuilder-to-automate-select-by-location/m-p/556062#M6008</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-01-17T19:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: Using Modelbuilder to Automate Select By Location</title>
      <link>https://community.esri.com/t5/mapping-questions/using-modelbuilder-to-automate-select-by-location/m-p/556063#M6009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In your model, you've set it up correctly it seems like, but you're not doing anything with the results, so it overwrites them each time.&amp;nbsp; Look into using a &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Integrating_a_model_within_a_model/002w0000007p000000/"&gt;model within a model&lt;/A&gt;&lt;SPAN&gt; and the &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//004000000005000000"&gt;Collect Values&lt;/A&gt;&lt;SPAN&gt; tool to gather the results from the iteration, and merge or append them or do whatever else you need to.&amp;nbsp; The section called "Advanced use of model iterators" should point you in the right direction.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2013 19:35:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/using-modelbuilder-to-automate-select-by-location/m-p/556063#M6009</guid>
      <dc:creator>JonathanQuinn</dc:creator>
      <dc:date>2013-01-17T19:35:37Z</dc:date>
    </item>
  </channel>
</rss>

