using NEAR tool

1901
1
11-12-2013 02:48 PM
MarkMcPherson1
New Contributor II
[ATTACH=CONFIG]29066[/ATTACH]  [ATTACH=CONFIG]29067[/ATTACH]

I want to use use the NEAR tool, in Python, to get the distance from a set of stocks (ss.jpg) to one mutual fund (ff.jpg).

I've partially figured it out:
arcpy.Near_analysis(r'HOLDINGS\ANCORA_ADVISORS',r'FUNDS\SAMPLE_FUND_FAM03_MI')

BUT, I need to learn how to choose a specific ROW from my mutual fund.

For example, my mutual fund is "Ancora Advisors" (see ff.jpg); so, I can I choose that specific row, do a NEAR, then go onto the next fund?
0 Kudos
1 Reply
by Anonymous User
Not applicable
Original User: swalbridge


I want to use use the NEAR tool, in Python, to get the distance from a set of stocks (ss.jpg) to one mutual fund (ff.jpg).


It sounds like the tool you want to use is Generate Near Table (Analysis), which will generate a list of nearby features, where the Near tool will only find the closest item.

cheers,
Shaun
0 Kudos