[GIS] Union in QGIS: missing polygon boundaries

qgisunion

I am trying to UNION two shapefiles in qgis. I use the geoprossesing tool UNION. Both sf are in the same coordinate system (same as in the project).

Layer_1Layer_2

In the resulting sf some polygon borders are missing (see mock-up of desired result in last image).

UnionMissing boundaries

I also tried the overlay tool from Grass toolbox (or) but no result was produce!
Any ideas or a workaround ?

Best Answer

With the tools available now by default in the "processing" toolbox (aka "sextante") the best result seems to be given by GRASS v.overlay with the option "OR". You will need to change a few colum names in your inputs, otherwise you'll get an error: GRASS adds a prefix to output column names, so when truncated they could result in identical names and that is not allowed.

If you have SAGA 2.10 it also has a union tool that gives what it seems the result you expect.