[GIS] Can’t merge Polygons – Error: “layers must all be of the same geometry”

mergeshapesmmqgispolygonqgis

I have several polygons (all of which have the same CRS and attributes) and I want to merge these into a single layer. I had hoped this would be a quick, easy process in QGIS but the merge functions (listed under data management tools and the one that is part of MMQIS) fails and instead report that the layers must be of the same geometry.

I am aware that Grass may provide a solution to this issue – as per Error in merging 2 shape files of different geometry types – but my knowledge of QGIS is limited and I would rather focus on that than needing to get my head around GRASS as well. Is there a simple function in QGIS that can resolve this issue?

Best Answer

Having selected 'save vector layer as..' I stumbled upon the fact that one of the shapefiles I was attempting to merge included the 'z-dimension' as part of its geometry, whilst the other files didn't feature this. I re-saved all the shapefiles I need to merge, specifying in each case that the geometry type was 'polygon' and that the 'z-dimension' was unchecked, then re-ran the merge process - on this occasion successfully