Add multiparts to single part method

This commit is contained in:
Alireza Adli 2024-03-26 17:12:14 -04:00
parent 41e8924938
commit bd6431c912

View File

@ -77,8 +77,11 @@ class ScrubLayer:
def merge_layers(self, layers_path, mered_layer_path):
pass
def multipart_to_singleparts(self):
pass
def multipart_to_singleparts(self, singleparts_layer_path):
QgsApplication.processingRegistry().addProvider(QgsNativeAlgorithms())
params = {'INPUT': self.layer,
'OUTPUT': singleparts_layer_path}
processing.run("native:multiparttosingleparts", params)
def split_layer(self):
pass