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?
The selected features should be one polygon feature.