1

After looking for an answer on some forums (without success :/) i post here in hope on of you can help me.

I have a polygon shapefile with thousands of entities (=row) and >10 attribute column.

A lot of these polygons share the exact same attributes, in fact there is only 12 different types of polygons.

I want to regroup all polygons with sames attributes in only one (so I just want to have 12 entities at the end and keep all the attribute data).

I have tried lots of options "regroup", "dissolve", "dissolve by attribute", etc... but each time one of these issues occurs :

  • I lost lot of columns (just keeping 1 or 2/3);
  • I got just one entity;
  • Some polygons "disappear"

The closest I found was SAGA "Dissolve", but it don't process on all polygons.

Any idea ?

I'm using QGIS 2.14.

  • In QGIS 3.4, the Dissolve tool allows you to dissolve based on multiple attribute fields, which would achieve what you need. I don't remember if it had this feature in 2.14. – csk Jul 23 at 14:32
  • Does any of the tools combine the geometries the way you want (forget about the attributes here, I'm just asking about the polygons)? If so, take that output and do a spatial join (join attributes by location tool) with the original to get the attributes back. – csk Jul 23 at 14:33
  • Hello, yes, the "dissolve" option works great but it didn't take every polygon into account, and i can't found a legit reason why :( – Exanos Jul 23 at 15:54
1

I don't know if it works on 2.14 as well but in my QGIS you can:

  • open attribute table
  • sort or filter the column you want to regroup
  • mark all rows that you want to regroup
  • right click the layer in your layer table while having objects still marked
  • click Export --> Export Chosen objects only
  • save as new layer

Not sure about the precise phrasing, because my QGIS is not in English. Hope it still helps.

  • Hello! ty for your answer but i need all polygons on the same layer. Can be worth to try to fuse them after separating them still. gonna try that. – Exanos Jul 23 at 15:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.