<div dir="ltr"><div>Good afternoon,</div><div>I have a very big polygonal layer (over 1 million objects). This layer contains a 'gid' column whose values uniquely identify each object. There is also a 'hierarchy_level_id' column: </div><div>this string column allowing to characterize the importance/priority level of each object: 1, 2A, 2B, 3A, 3B. </div><div><br></div><div>My goal for this layer would be: </div><ul><li>To perform a union process in the QGIS meaning: <a href="https://docs.qgis.org/3.40/en/docs/user_manual/processing_algs/qgis/vectoroverlay.html#union">https://docs.qgis.org/3.40/en/docs/user_manual/processing_algs/qgis/vectoroverlay.html#union</a></li><li>In the result/output file, I want to create two new columns. The first column list the 'hierarchy_level_id' for each feature. And a second column would retrieve the maximum value of the 'hierarchy_level_id' for each feature.</li></ul><br>In other words, for areas where there is one or more overlaps, I don't want that my union result contains as many identical features as there are features participating in this overlap. I want a single unique feature to be created per overlap/overlapping area.<br><br><div>How can I perform this process with QGIS? Should I use the Qgis Union process? Use the aggregate function? Or something else?</div><div><br></div><div>In advance, thanks so much.</div><br></div>