How to join two lines in QGIS

Let's assume that you want to join 2 lines in QGIS:

Join 2 lines QGIS

Activate edition mode and click on the magnet tool:

Magnet tool QGIS

Click on the first vertex and bring the cursor close to the second one:

Join 2 vertex QGIS

At this point, you'll have a continuous line. Finally, dissolve attributes of both lines to have only one entry on the attribute table. Go to:

Vector > Geoprocessing tools > Dissolve


Here is the final result:

Final result

Hi, I'm Erik, an engineer from Barcelona. If you like the post or have any comments, say hi.