Counting Features to Calculate Field Value

المشرف العام

Administrator
طاقم الإدارة
Generally, I am trying to find the # of features in one shapefile within 1000 feet of EACH feature in a second shapefile - and then populate a field in the first shapefile with that #.

More specifically, I trying to get a count of features in one shapefile (call it Practice_Stops.shp) that lie within a certain proximity (1000 feet) of EACH feature in a second shapefile (called Practice_Stops1.shp). I also want to restrict the count of features to only include those that also occurred within a certain time period, determined by the date attached to the feature in Practice_Sales1.shp. Using model builder I have come up with the following:



The idea is that I go row by row in the Practice_Sales1.shp file, where the Iterate Row Selection tool conditions on date and location so as to select every row in the table. For each row, I use the Select Layer By Location tool to compare the Sale location to features in the Practice_Stops.shp file and select those within 1000 feet. This selection is then input for the Select Layer By Attribute tool, which refines the selection to only include features from the Practice_Stops file that occurred within a certain time proximity from "Value (2)" - the date field in each row of the Practice_Sales(1).shp file. Finally, I want to count all the features and populate a field in the row currently being iterated from the Practice.Sales.shp file. The problem I have is that the Get Count tool doesn't seem to give me output that I can populate a table field with - how can this be done.



أكثر...
 
أعلى