QGIS Snapping – How to Snap Lines to Nearest Point

qgisqgis-2.6snapping

Is there an easy way to snap lines to nearest point of either a line or a polygon? I don't see any snapping options for line layers as suggested on How to merge lines with slightly different endpoints in QGIS?

Best Answer

You have to allow snapping and then play around with the options until you configure settings that suit your needs best. You can open the snapping options as shown here:

enter image description here

And then configure your settings, either using map units or pixels as your tolerance unit.

Alternatively you could go to Options (same screenshot), and then navigate to the Digitizing tab.

EDIT:
You have to set the options on the vector that other vectors should be snapping to. In your case you would have to activate snapping on your point dataset. Like this, for example:

enter image description here

Now, if you get within 5 pixels of a point the line would snap to it.

EDIT #2:
I read your question again. The points you are talking about are called vertexes. These are the points that make up lines or polygons. So, set the snapping on the feature that you want other features to snap to, and set the vertex option.