I have a polygon layer and a polyline layer. I got the centroids of the polygon layer and used the Near Tool to find the distance from the closest point from the centroids to the polyline layer.
One thing I tried doing was to create a buffer from the points based on the Near value then finding the intersection but that did not work well.
One suggestion I got but was unsure what he meant and am unable to follow up with is:
Use the Near function (not Generate Near Table nor Point Distance) with your original point layer that you added the coordinates to and specify another point layer as your near points. When the function is done, two variables will be added to the original point layer that contains the x and y coordinates of the point nearest to it, those will be your end x and y.
I think what confuses me is that I am not sure if I am supposed to find the nearest point using the polyline layer rather than the point layer.
Question: How can I find the X/Y coordinates of nearest point on the polyline in order to create a line between that set of X/Y coordinates and a centroid point?
The end result is supposed to be: The end result is that I want to make a line between the centroid and the nearest point on the polyline layer and connect it to the polyline layer. I tagged this Network Analyst because eventually I want to make a connected network.