Sign up ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Using QGIS - I have a vector of fault lines. I have point data in the form of a csv which I have also loaded into QGIS. I need to know how far each point is from the nearest fault line then enter this distance in a new column in the csv file. Any ideas?

share|improve this question

4 Answers 4

You can do this easily using the GRASS plugin with the v.distance module. Import both the fault lines ( in GRASS) and the csv file (, then run v.distance with the "upload=dist" parameter.

share|improve this answer

Staying in QGIS, use the mmqgis plugin. Install the plugin, then use the hub distance tools.

Be aware though, that it may only return the distance of the point from centre of the (fault) line. Explore your results to determine this effect.

share|improve this answer

The NNJoin plugin is an alternative for small datasets.

share|improve this answer

you can do it by going firstly to the "measure line" in the upper status bar as you can see in the image below. then you can select points of your interest what you want to measure. Also you can add a new column to the csv file by double clicking on the layer>fields>toggle editing mode on>field calculator>create a new field. Good luck!

share|improve this answer
I don't see the image you've referred to. Perhaps you didn't have enough points to add it? –  BradHards Jan 25 at 8:04
I doubt the question author is looking for a manual way of measuring distances. –  underdark Jan 25 at 10:18

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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