Repeated use of Near tool overwrites previous measurements

901
2
01-27-2013 12:50 PM
NickPittman
New Contributor
Hi there,
I have a large housing dataset, and would like to generate several new distance variables for each house observation, such as distance to nearest library, nearest public high school, etc.  However, each time I use Near, it overwrites the previous column of distance data.  Any suggestions for ways to have it keep adding new distance columns?  Thanks!
Nick
0 Kudos
2 Replies
DavidHockman-Wert
New Contributor II
Hi,

This is the way Near behaves if you run it multiple times.  Each time, the Near fields are overwritten with the new data.  But the tool also allows you to input multiple Near features, so if you could separate the various items into separate feature classes, you could add them all in one run of the tool.

Another option you could try is to add new fields after each run and copy the output of NEAR_FID and NEAR_DIST into the new fields before you run Near again.  A little tedious, but better than nothing.

Dave
0 Kudos
NickPittman
New Contributor
Dave,
Thanks for the advice!  I tried the latter of your suggestions and it is working well.  Best,
Nick
0 Kudos