Select By Location then Append if points selected Model Builder

المشرف العام

Administrator
طاقم الإدارة
I am iterating through a point shapefile to assign the points to buffer zones that they fall within, because some points fall within several buffer zones I am doing this using the Append tool into a pre-made shapefile so I will have a copy of each point for every buffer zone it is in. I have this set up in Model Builder currently using the Clip tool to 'clip' my points by my buffer, if the output is empty I move on, and if it is not then I assign the new points the buffer ID and append them to my final point shapefile.


However it is running very slow and I have about 11,000 buffer zones in total to get through. Previously I had been using Select By Location on my points instead of clip, but I realized that if no points were selected (as happens with this data set) then ALL of my point are assigned that buffer ID and appended to my final shapefile. I need to find a way to prevent the Calculate Field and Append tools from running if no rows are selected, but I can't seem to make that work. I know the Get Count tool would only work for that if I was using the Select tool, is there any other way to work this? Is there a Get Count but only for selected rows?

Any advice on how to speed up this leg of my model (which seems to be the slowest) would be very helpful. Thank you in advance.



أكثر...
 
أعلى