Solved! Go to Solution.
Hi,
I have a similar problem. I want to calculate the distance of point data from 2 lines. I use the near tool for one line and it calulates the distnace and adds it to the attribute table then I calculate it for second line and it overwrites the values in the attribute table. If I simulateously calculate proximity using near to both lines it calculate only distance to nearest line not both lines. Any help would be appreciated.
Thanks
Julian
To measure the "mean" distance between two lines could involve calculating distances from vertices of one line to the other line, and then take the average of the total. So, you can try the following:
1. For line1, use Feature Vertices To Points tool (Data Management toolbox - Features toolset; ArcInfo license) with the ALL option to get all the vertices of line1; let's call it vertices1
2. Use the Near tool to find the nearest distances from vertices1 to line2.
3. Use the Summary Statistics tool to get the "mean" and "minimum" of the NEAR_DIST from the result of step 2.
You can follow the similar steps to get the info for line2, if you want to compare the values in two directions.
If your line1 and line2 actually contain many connected lines, you can use Unsplie Line or Dissolve tool to "merge" connected lines into one line before the above processes; or you may need to use Case Field in step 3 to get the statistics for each line; have a look of tool help doc.
Hope this helps.