Sunday, 4 February 2018

arcgis desktop - Find point on line with given nearest point


I have a line and point layer. Points are not exactly intersect with line layer. With respect to existing point, how to find the new points which are exactly on the line ? consider buffer distance is provided.


enter image description here



Answer




You can use the near tool to calculate the perpendicular points on a line :




  1. Calculate the distance from points to lines with the Near tool :



    • input features: Points

    • near features: Lines

    • check "location option" to get near_x and near_y





  2. Calculate an event layer from near_x and near_y




This gives a new point layer with the same id's as the input points, all laying on the line object. You can then use a select between to filter the distance, if you like.


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...