I have a shapefileA that has 13 points. Each of these points is coded with a unique ID from A to M.
I created 10 different buffers (representing different distances) around each point via the multiple ring buffer (analysis). I now have a shapefileB that shows all of the buffers around each of the 13 points.
I have another shapefileC that contains thousands of points, where each point is associated with a unique code (A-M) that corresponds to a single point in shapefileA. For example, a query of “ID = A” for the shapefiles will show the one point in shapefileA, the particular set of buffers in shapefileB, and the multiple points associated (that fall within the buffers) with it in shapefileC.
Here is where I need help. What is the most efficient way, via python, to find how many points are within each buffer band for each unique ID, and then updating a new field (in shapefileB) with the number? I know I need a cursor to go through each row, then a select by location, then a count of points, and finally a new field calculation to show the sum of points within the specific distance buffer for the specific ID.
I’m not good with nesting cursors, and it seems like this is what I’ll need.