[GIS] How to dissolve polygons that overlap both on each other in QGIS

dissolvemmqgisqgisshapefile

I have two layers of polygons with landcover classes(meadows, cropland, forest, ect) They overlap in both directions, i.e like a zipper. I need to dissolve them by one attribute (Class) so I can have the total area of each polygon… but in the overlapping sections sometimes the landcover classes donĀ“t match.

If I try UNION, the algorithm creates new features for this overlapping regions, but also creates another AREA column and in some cases I have values for both columns simultaneously (I have now 2 AREA columns: one for each layer I "unioned").

I also tried the merge layers of the MMQGIS plugin, but the attributes are not summed up. And dissolving by class just creates an empty layer.

(The image is the union of the two layers. The arrows indicate which layer is overlapping over the other. Both images are corrected in terms of projection)

Does someone knows how to do something like this?
I work on QGIS 2.12.3 on a PC.

enter image description here

Best Answer

After hours of trial and error, I found a solution that I answered here: How to merge and dissolve adjacent polygons and sum up their attributes in QGIS?

Related Question