I would like to measure the shortest distance from multiple points to a any part in a coast line of three different costs. How do I do this with QGIS or with SAGA GIS?

  • In QGIS the tool to get distances between features in two layers - your points and coast lines - is called "Distance Matrix...", and you can find it from top menu under Vector / Analysis Tools. – Miro Jul 8 '20 at 3:04

You can achieve this with the Join attributes by nearest algorithm in QGIS. It returns not only the join of attributes (which costline is the nearest) but also the distance between the input geometries (shortest line between points and lines/polygons). It also yields the X and Y coordinates of the nearest point on the coastline which could be used for visualizing the shortest line or calculating ellipsoid based distances.


I now found the easiest solution for me to be the Qgis-Addon NNjoin.

  • Hi! GIS.SE is a little different than other help sites. Please post comments using the 'add a comment' button as soon as you have enough reputation and don't post it as answer. If you found the answer useful, you can accept it by clicking the green check symbol below the vote counter. – root676 Jul 6 '20 at 13:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.