From f49f2f9357e4e5d43ecca4a40c6fd995ed9d4eb4 Mon Sep 17 00:00:00 2001 From: Alireza Adli Date: Thu, 25 Apr 2024 11:16:33 -0400 Subject: [PATCH] Remove initialize qgis from the constructor --- scrub_layer_class.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/scrub_layer_class.py b/scrub_layer_class.py index 12365a2..8961138 100644 --- a/scrub_layer_class.py +++ b/scrub_layer_class.py @@ -18,13 +18,10 @@ class ScrubLayer: def __init__(self, qgis_path, layer_path, layer_name): self.qgis_path = qgis_path + # Set the path to QGIS installation QgsApplication.setPrefixPath(self.qgis_path, True) - # # Initialize QGIS application - # qgs = QgsApplication([], False) - # qgs.initQgis() - self.layer_path = layer_path self.layer_name = layer_name self.layer = self.load_layer()