AnsweredAssumed Answered

Using Modelbuilder to Automate Select By Location

Question asked by mssoc on Jan 4, 2013
Latest reply on Jan 17, 2013 by JQuinn-esristaff
Hello,

Ive got my map divided into several polygons.  I have points located throughout these polygons.  Each polygon is a different shape and size and contains a unique number of points.

I want to extract a count of these points per polygon (output to a .csv format if possible).  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.  I have millions of points throughout my map and it takes a few hours doing it manually. 

I have started building a tool which ends up outputting another point file (that replicates the point file I use as the input)  instead of a file that just contains the counts (and other summarized data).  Cant seem to figure out what needs to change here?  My coordinate system is the same in the input and output.  I am using ArcMap 10.

Attached is the picture of my tool as it stands currently and the exported Python Script.

Outcomes