I want to collect polygon features from my layer to create one polygon features by considering the field attributes. I mean in attribute table if "DN" value of feature is 1000 that feature will be selected. After that all selected features should be treat as one polygon. I want to make it on the same layer without creating another layers etc. Is it possible by using pyqgis?

enter image description here

The selected features should be one polygon feature.

1 Answer 1


I don't know if this would be of help but it was helpful for me during the same process but creating different feature. How to "Merge Selected Features" with python?

  • combine command merge neighbour polygons. It does not look suitable for me Commented Jun 29, 2018 at 20:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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