One Step Further: Merging Shapefiles with Union

In some situations you may want to merge two shapefiles together.

For instance, I am working on Franco-Swiss railway connections. Each national railway network is in a different shapefile. Both layers coincide perfectly and I would like them to be merged into one common “Franco-Swiss Railways” shapefile.

The border can hardly be seen as both shapefiles coincide very well

In order to merge them, click on VectorGeoprocessing ToolsUnion.

3 union

In the window that just opened, you need to choose which layer will be inserted into the other one. In our case, this does not really matter as the two layers only meet at the border. This will be more important if you have, for instance, a map of Africa to which you are adding some elements located in Western Africa (see example video on YouTube).

3 union-box

Once you have clicked OK, the new layer is created. Untick the two original shapefiles and see if the result is satisfactory.

3 layers after union


Last update: 26 May 2015 with QGIS 2.8.1 Wien.

Back to Tutorial 3: Finding, Importing and Editing Shapefiles | Next tutorial: Georeferencing Maps