How to create a line between a point and nearest neighbour using python (template inc

المشرف العام

Administrator
طاقم الإدارة
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: i. Is anyone willing and able to modify Jeff Berry's solution to fit QGIS? ii. 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 have a large number of points and this method would simply be impractical.

Thank you very much, Cai



أكثر...
 
أعلى