I want to calculate the nearest distance from a point feature to a line feature in a distinct angle.

When using the Near analysis tool in ArcGIS I get the nearest distance in a angle where the nearest feature lies. In the picture below for -170°.

But I want to be able to calculate the distance for different angles for example for 90° or 180°. Someone an idea how I could solve this? I'm also capable of creating my own script with python.

enter image description here

1 Answer 1


I created this tool that may help?


As a side note it is always worth checking out arcscripts before posting here.

Create your bearing lines, run an intersect to create intersection points and pass over ids then run the near tool or use pyrhon to get distances.

  • great thank you also thought about that way afterwards.
    – Andrej
    Mar 6, 2016 at 20:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.