Add two new methods

This commit is contained in:
Alireza Adli 2024-10-21 12:34:03 -04:00
parent 6cf3581014
commit d70130b570

View File

@ -69,6 +69,9 @@ class ScrubLayer:
QgsProject.instance().addMapLayer(the_layer)
return the_layer
def features_to_layers(self):
pass
def fix_geometries(self, fixed_layer):
QgsApplication.processingRegistry().addProvider(QgsNativeAlgorithms())
fix_geometries_params = {
@ -115,6 +118,9 @@ class ScrubLayer:
processing.run("native:clip", clip_layer_params)
print(f'Clipping of {self.layer_name} is completed.')
def clip_by_predefined_zones(self):
pass
def clip_by_multiple(self, number_of_partitions, overlay_layers_dir, clipped_layers_dir):
create_folders(clipped_layers_dir, number_of_partitions)
for layer in range(number_of_partitions):