From d70130b570e37572f49b3b919dd58fde27f41b9a Mon Sep 17 00:00:00 2001 From: Alireza Adli Date: Mon, 21 Oct 2024 12:34:03 -0400 Subject: [PATCH] Add two new methods --- scrub_layer_class.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scrub_layer_class.py b/scrub_layer_class.py index 339fbad..ff5b37e 100644 --- a/scrub_layer_class.py +++ b/scrub_layer_class.py @@ -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):