Merge two or more polygons, points or polyline of Shapefile



Merge two or more polygons, points or polyline in Shapefile

Merge two or more polygons, points or polyline of Shapefile in QGIS. Do you want to merge features of to combine them into one feature and to maintain its database dbf values along with it. QGIS – Quantum Geographic information system is of the most important for geographers and with the help of this tool I would demonstrate you to merge features within same layer. You can also have a look on how to merge more than two shapefiles.

If you haven’t installed QGIS, lets install Latest Quantum GIS first and open it up. Here are the steps to merge features of shapefile in QGIS.

Merge two or more polygons, points or polyline of Shapefile in QGIS:

We can merge two features in Shapefile in QGIS easily. Let’s say I have a Shapefile states.shp and I want to merge two states. Open up your QGIS tool.

1.) Select the layer and click the toggle edit button from the toolbar.

Merge two or more polygons, points or polyline of Shapefile2.) Click on select tool from toolbar as indicated in the image.

Merge two or more polygons, points or polyline of Shapefile
Merge two or more polygons, points or polyline of Shapefile

3.) Press control (ctrl) key and click on the features you want to merge to select them.

Merge two or more polygons, points or polyline of Shapefile

4.) Click on the Edit option where you can find find merge selected features.

Merge two or more polygons, points or polyline of Shapefile
Merge two or more polygons, points or polyline of Shapefile

5.) You will see this window after selecting merge selected button.

Merge two or more polygons, points or polyline of Shapefile

6.) In the above dialogue box you can see there are three columns and four rows. In the first row you can select options for the fields so that what value you want to assign for the merged feature. Go ahead and try the given options.

7.) In the last row you can see the option you selected or you can delete that value by simply double clicking on the field and press delete from keyboard. After you are done you can click ok.

8.) You can see the features are merged. you can also check attribute table.

9.) click on save layer edits buttons and then click on toggle editing button if you are done.

Merge two or more polygons, points or polyline of Shapefile
Merge two or more polygons, points or polyline of Shapefile

That is all about merging two features of shapefile whether it is polygon, polyline or point features. If you are getting any problem in performing the above steps, do comment below, we would try to solve the problem by discussing over here.

Author: Akshay Upadhyay

Owner and Director of a Private Limited company which serves individual to large scale industries in the field of Maps and GIS. He is a Gold Medalist in M.Tech(Spatial Information Technology) and owns some famous Technology blogs and website... Know more

11 thoughts on “Merge two or more polygons, points or polyline of Shapefile”

    1. This is very simple in ArcGIS. Take Feature to polygon option and put input feature as polyline and give point feature in the point Label Features(optional ). Click OK. you will get the result.

  1. hello,

    I have a question about merging features on the map:
    how to undo a misclick in the process?:
    f.e. I’m merging 20+ countries to one continent but suddenly I do a misclick…
    I haven’t found a way to undo ONLY the last (mis)click so i don’t have to start all over again

    thanks for any reply.

  2. Hello, thanks for the clear description!
    Now I have loads (>1000) pieces of polygon parts that i want to merge (adajecent parts) is there a way of f.ex. have an automated skript that merges the parts by the rule of a shared border?
    thanks!

  3. It is not working for line feature , it merges the thing after refreshing the layer edit it does not save.

  4. Hi there,

    I get as a far as Step 4, and then get an error message in a red bar across the top of the map area (It reads: ‘Merge Failed: An error occurred during the merge operation’). Any idea what may have gone wrong here. My version is QGIS 2.18.3 Las Palmas.

    Thanks for any help you can give me,
    Chloe

  5. Hi,
    I have polygons and multipolygons and when I want to merge them I get this error:
    Merge failed: Resulting geometry type (multipart) is incompatible with layer type (singlepart).
    Is there a solution?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.