I have a dataset (many datasets) that have a single line (of arbitrary orientation) and a large number of points.
I wish to add the perpindicular distance to the line as an attribute to each of the points. This seems like a simple GIS question with an easy answer ... but I can't find it.
The closest I have come is the NeighborFinder, but if I use the points as bases, and the line as a candidate, it appears to measure the distance to an endpoint of the line, not the closest point. The NeighborFinder works properly if I use the line as the base and the points as candidates, but then it only finds one point and the attribute is added to the line, and I need it the other way around.
Is there a simple way to do this, or do I need to do the geometric math myself and just calculate the distance with an arbitrary formula?