I have 2 shapefiles - one is a series of points, the other is a polyline. I want to draw a straight line between each point to the nearest point on the polyline.
This question has already been asked with regards to ArcGIS. The solution provided by Jeff Berry looks to be exactly what I need:
Creating a line (closest vertex to line)
Unfortunately, I have never worked with python, and have only a basic understanding of coding through Linux.
My questions:
- Is anyone willing and able to modify Jeff Berry's solution to fit QGIS?
- Or is there an alternative way to create a line between points and polyline, hence avoiding python?*
*NOTE: A useful suggestion is provided here:
QGIS: creating lines from starting to arrival points?
However I've not been able to identify the coordinates of the nearest neighbor - if anyone knows how to do this, I can proceed using the non-python solution.