Initialize the constructor and Generate output paths
This commit is contained in:
parent
7bbd538d2f
commit
dac1dfb042
|
@ -3,12 +3,25 @@ from basic_functions import *
|
||||||
|
|
||||||
|
|
||||||
class ScrubMTL:
|
class ScrubMTL:
|
||||||
def __init__(self):
|
def __init__(self, nrcan, geoindex, property_assessment,
|
||||||
pass
|
montreal_boundary, output_paths_dir):
|
||||||
|
self.nrcan = nrcan
|
||||||
def define_input_paths(self):
|
self.geoindex = geoindex
|
||||||
"""Can be a part of the constructor"""
|
self.property_assessment = property_assessment
|
||||||
pass
|
self.montreal_boundary = montreal_boundary
|
||||||
|
self.output_paths_dir = output_paths_dir
|
||||||
|
self.output_paths = {
|
||||||
|
'Fixed NRCan': '',
|
||||||
|
'Fixed GeoIndex': '',
|
||||||
|
'Clipped Fixed GeoIndex': '',
|
||||||
|
'Splitted NRCan': '',
|
||||||
|
'Pairwise Clipped Property Assessment Partitions': '',
|
||||||
|
'Pairwise Clipped Merged Property Assessment': '',
|
||||||
|
'Property Assessment and NRCan': '',
|
||||||
|
'Property Assessment and NRCan and GeoIndex': '',
|
||||||
|
'Deleted Duplicates Layer': '',
|
||||||
|
'Singled Parts Layer': ''
|
||||||
|
}
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def merge_layers(layers_path, mered_layer_path):
|
def merge_layers(layers_path, mered_layer_path):
|
||||||
|
@ -22,7 +35,11 @@ class ScrubMTL:
|
||||||
processing.run("native:mergevectorlayers", params)
|
processing.run("native:mergevectorlayers", params)
|
||||||
|
|
||||||
def generate_output_paths(self):
|
def generate_output_paths(self):
|
||||||
pass
|
for path in self.output_paths.keys():
|
||||||
|
new_folder = path.lower().replace(' ', '_')
|
||||||
|
output_path = self.output_paths_dir + '/' + new_folder
|
||||||
|
os.mkdir(output_path)
|
||||||
|
self.output_paths[path] = output_path + f'/{new_folder}.shp'
|
||||||
|
|
||||||
def initialize_layer(self):
|
def initialize_layer(self):
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in New Issue
Block a user