Quantcast
Channel: Forums - ArcGIS for Desktop - General
Viewing all articles
Browse latest Browse all 2565

Modelbuilder - Generate Near Table

$
0
0
I am trying to find the distance between a mutual fund's headquarters location and the stocks that it owns. For example, the mutual fund, Union Investment (headquartered in Lincoln, Nebraska) owns 48 stocks throughout the USA.


In ArcMap 10.2 (Info), I have to: - select by Attribute the individual fund from my Fund layer (e.g. Union Invst) - select by Attribute the stocks that are owned by Union Invst (in the Stock layer, under the FUND_FAM column) - use "Generate Near Table" which gives me the distance (Input=Stocks, Near=Funds).


It works, however, I will need to do this 226 times, as that's how many funds I have to do. I'd like to do this in Modelbuilder, but I need help. I believe this is some kind of iterate function, but I do not understand this very well. I appreciate any advise.

Attachment 30738Attachment 30739Attachment 30740
Attached Thumbnails
Click image for larger version

Name:	holdings1.jpg‎
Views:	N/A
Size:	136.3 KB
ID:	30738   Click image for larger version

Name:	fund1.jpg‎
Views:	N/A
Size:	92.5 KB
ID:	30739   Click image for larger version

Name:	stocks1.jpg‎
Views:	N/A
Size:	82.2 KB
ID:	30740  

Viewing all articles
Browse latest Browse all 2565

Trending Articles