I have a shapefile with the nodes of a grid I have applied, for the purposes of interpolation, and I want to compute the euclidean distance that each grid node (it is a point vector) has to the coastline. I don not want to calculate the nearest neighbor for each point of my grid. I want to have in a table the euclidean distance that each point (the points are placed on the nodes of a regular grid) has from the coast, so that I can use this information as an auxiliary variable in my interpolation. I have found several tools in ArcMap that compute distances, but nothing that computes all the distances from one point feature to a line feature.
Have you looked at the Near tool? If I understand the question correctly, it seems like that might be the solution to your problem.
The approach to this that I would use is to:
- Convert the vertices of your line to points using Feature Vertices To Point
- Calculate distances to those points from your original point using Point Distance
Both tools require an Advanced level license but, if you do not have that, then searching this site may be able to uncover workarounds that create the same outputs using a Basic level license.
I want the distance that every point has from the coastline
In fact if i got you "Generate Near Table" tool will work for you if you have Advance License (e.g. compare distance) but both point and line feature layers to be projected on the projected coordinate system beforehand. My clarification is as below..