I have a shapefile of U.S. counties. I also have a line segment. I want to compute the distance of each county to the line. I have also divided the line segment into 10 equal segments. I want to know, for each county, which of the 10 segments is closest?
Is there an easy way to do this in GIS? Right now, I just do the distance separately for each border segment, 10 times. Then in Excel, I determine which segment gives the shortest distance. Identifying, for each county, which of the 10 distances is the miniimum, and then which segment gives that minimum.
I know I can streamline this for the distance part had I not subdivided into the 10 segments. I can just get the shortest distance in general using the whole line. However, I don't know what's a fast way to identify which line segment yields it.
I use ArcGIS 10.1 and ArcMap. I would appreciate any help that you can provide!