In my experience, there are some useful uses for the example 1 given by Vinayan.<div><br></div><div>For example, I have, in the same layer, overlapping service areas for urban parks. In order to calculate available park area to the population in the overlapping areas, I need to break polygons where they overlap, and later perform a sum of each available park area (eliminating the duplicated polygons).</div>
<div><br></div><div><a href="https://www.dropbox.com/s/xowepuzd7jklh2h/Figura%206.4.5..jpg">https://www.dropbox.com/s/xowepuzd7jklh2h/Figura%206.4.5..jpg</a></div><div><br></div><div>Yet, I do understand that this operation originates duplicate polygons that must be fixed later, and this might be a bad principle.</div>
<div><br></div><div>Alexandre Neto<br><br><div class="gmail_quote">On Mon, May 6, 2013 at 4:17 PM, Bernhard Ströbl <span dir="ltr"><<a href="mailto:bernhard.stroebl@jena.de" target="_blank">bernhard.stroebl@jena.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Vinayan,<br>
<br>
just some comments:<br>
IMHO features in layers to union should not overlap within one layer (e.g. landuse is either A or B), so your examples are theoretical only. Example 1 does not make sense in this respect. Example 2: If we assume that the circles in layer 2 do not overlap and the overlapping area is only part of the left hand circle (1) the union operation should result in what you show (except the overlapping area would be only one polygon with A=1 and B=X)<br>

<br>
Bernhard<br>
<br>
Am 06.05.2013 17:05, schrieb vinayan:<div class="im"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
At present the union tool does not give correct results in sextante/ftools.<br>
After looking at some bug reports, I feel that even in QGIS 1.8, the union<br>
tool was not producing the correct output either attribute-wise or<br>
geometry-wise.<br>
<br>
My question is how should the real output be? I have two cases here.<br>
<br>
1. Union of a single layer against itself  -<br>
<a href="https://www.dropbox.com/sh/asicnvr71vxeaz2/TKVUpdleIX#f:singleLayerInput.png" target="_blank">https://www.dropbox.com/sh/<u></u>asicnvr71vxeaz2/TKVUpdleIX#f:<u></u>singleLayerInput.png</a><br>
2. Union between two different layers -<br>
<a href="https://www.dropbox.com/sh/asicnvr71vxeaz2/TKVUpdleIX?lst#f:twoLayerInput.png" target="_blank">https://www.dropbox.com/sh/<u></u>asicnvr71vxeaz2/TKVUpdleIX?<u></u>lst#f:twoLayerInput.png</a><br>
<br>
<br>
It looks to me that for case 1, the result could be like below(11 geometries<br>
in total)<br>
<a href="https://www.dropbox.com/sh/asicnvr71vxeaz2/TKVUpdleIX?lst#f:singleLayerResult1.png" target="_blank">https://www.dropbox.com/sh/<u></u>asicnvr71vxeaz2/TKVUpdleIX?<u></u>lst#f:singleLayerResult1.png</a><br>
<br>
and for case 2, the result could be like below<br>
<a href="https://www.dropbox.com/sh/asicnvr71vxeaz2/TKVUpdleIX?lst#f:twoLayerResult1.png" target="_blank">https://www.dropbox.com/sh/<u></u>asicnvr71vxeaz2/TKVUpdleIX?<u></u>lst#f:twoLayerResult1.png</a><br>
<br>
what do you think? Anybody knows how it looked in 1.8?<br>
<br>
Thanks<br>
Vinayan<br>
<br>
<br>
<br>
</blockquote>
<br>
<br></div>
__________ Information from ESET Mail Security, version of virus signature database 8301 (20130506) __________<br>
<br>
The message was checked by ESET Mail Security.<br>
<a href="http://www.eset.com" target="_blank">http://www.eset.com</a><div class="HOEnZb"><div class="h5"><br>
<br>
<br>
______________________________<u></u>_________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/qgis-user</a><br>
</div></div></blockquote></div><br></div>