mirror of
https://github.com/qgis/QGIS.git
synced 2025-11-27 00:07:16 -05:00
[processing] fixed wrong indentation
This commit is contained in:
parent
d46f98d4e5
commit
568ddb349a
@ -41,7 +41,7 @@ class las2lasPro_filter(LAStoolsAlgorithm):
|
||||
self.addParametersPointOutputGUI()
|
||||
|
||||
def processAlgorithm(self, progress):
|
||||
if (LAStoolsUtils.hasWine()):
|
||||
if (LAStoolsUtils.hasWine()):
|
||||
commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "las2las.exe")]
|
||||
else:
|
||||
commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "las2las")]
|
||||
|
||||
@ -70,7 +70,7 @@ class las2lasPro_project(LAStoolsAlgorithm):
|
||||
self.addParametersVerboseGUI()
|
||||
|
||||
def processAlgorithm(self, progress):
|
||||
if (LAStoolsUtils.hasWine()):
|
||||
if (LAStoolsUtils.hasWine()):
|
||||
commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "las2las.exe")]
|
||||
else:
|
||||
commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "las2las")]
|
||||
|
||||
@ -58,7 +58,7 @@ class las2lasPro_transform(LAStoolsAlgorithm):
|
||||
self.addParametersVerboseGUI()
|
||||
|
||||
def processAlgorithm(self, progress):
|
||||
if (LAStoolsUtils.hasWine()):
|
||||
if (LAStoolsUtils.hasWine()):
|
||||
commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "las2las.exe")]
|
||||
else:
|
||||
commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "las2las")]
|
||||
|
||||
@ -43,7 +43,7 @@ class las2las_filter(LAStoolsAlgorithm):
|
||||
self.addParametersAdditionalGUI()
|
||||
|
||||
def processAlgorithm(self, progress):
|
||||
if (LAStoolsUtils.hasWine()):
|
||||
if (LAStoolsUtils.hasWine()):
|
||||
commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "las2las.exe")]
|
||||
else:
|
||||
commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "las2las")]
|
||||
|
||||
@ -67,7 +67,7 @@ class las2las_project(LAStoolsAlgorithm):
|
||||
self.addParametersAdditionalGUI()
|
||||
|
||||
def processAlgorithm(self, progress):
|
||||
if (LAStoolsUtils.hasWine()):
|
||||
if (LAStoolsUtils.hasWine()):
|
||||
commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "las2las.exe")]
|
||||
else:
|
||||
commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "las2las")]
|
||||
|
||||
@ -54,7 +54,7 @@ class las2las_transform(LAStoolsAlgorithm):
|
||||
self.addParametersAdditionalGUI()
|
||||
|
||||
def processAlgorithm(self, progress):
|
||||
if (LAStoolsUtils.hasWine()):
|
||||
if (LAStoolsUtils.hasWine()):
|
||||
commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "las2las.exe")]
|
||||
else:
|
||||
commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "las2las")]
|
||||
|
||||
@ -47,7 +47,7 @@ class las2txt(LAStoolsAlgorithm):
|
||||
self.addParametersAdditionalGUI()
|
||||
|
||||
def processAlgorithm(self, progress):
|
||||
if (LAStoolsUtils.hasWine()):
|
||||
if (LAStoolsUtils.hasWine()):
|
||||
commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "las2txt.exe")]
|
||||
else:
|
||||
commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "las2txt")]
|
||||
|
||||
@ -47,7 +47,7 @@ class las2txtPro(LAStoolsAlgorithm):
|
||||
self.addParametersVerboseGUI()
|
||||
|
||||
def processAlgorithm(self, progress):
|
||||
if (LAStoolsUtils.hasWine()):
|
||||
if (LAStoolsUtils.hasWine()):
|
||||
commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "las2txt.exe")]
|
||||
else:
|
||||
commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "las2txt")]
|
||||
|
||||
@ -36,7 +36,7 @@ class lasdiff(LAStoolsAlgorithm):
|
||||
OTHER_POINT_FILE = "OTHER_POINT_FILE"
|
||||
CREATE_DIFFERENCE_FILE = "CREATE_DIFFERENCE_FILE"
|
||||
SHUTUP = "SHUTUP"
|
||||
SHUTUP_AFTER = ["5", "10", "50", "100", "1000", "10000", "50000"]
|
||||
SHUTUP_AFTER = ["5", "10", "50", "100", "1000", "10000", "50000"]
|
||||
|
||||
def defineCharacteristics(self):
|
||||
self.name, self.i18n_name = self.trAlgorithm('lasdiff')
|
||||
@ -53,7 +53,7 @@ class lasdiff(LAStoolsAlgorithm):
|
||||
self.addParametersAdditionalGUI()
|
||||
|
||||
def processAlgorithm(self, progress):
|
||||
if (LAStoolsUtils.hasWine()):
|
||||
if (LAStoolsUtils.hasWine()):
|
||||
commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "lasdiff.exe")]
|
||||
else:
|
||||
commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "lasdiff")]
|
||||
@ -65,7 +65,7 @@ class lasdiff(LAStoolsAlgorithm):
|
||||
commands.append('"' + file + '"')
|
||||
shutup = self.getParameterValue(lasdiff.SHUTUP)
|
||||
if (shutup != 0):
|
||||
commands.append("-shutup")
|
||||
commands.append("-shutup")
|
||||
commands.append(lasdiff.SHUTUP_AFTER[shutup])
|
||||
if self.getParameterValue(lasdiff.CREATE_DIFFERENCE_FILE):
|
||||
self.addParametersPointOutputCommands(commands)
|
||||
|
||||
@ -77,21 +77,21 @@ class lasgroundPro_new(LAStoolsAlgorithm):
|
||||
self.addParametersHorizontalAndVerticalFeetCommands(commands)
|
||||
method = self.getParameterValue(lasgroundPro_new.TERRAIN)
|
||||
if (method == 5):
|
||||
commands.append("-step")
|
||||
commands.append("-step")
|
||||
commands.append(unicode(self.getParameterValue(lasgroundPro_new.STEP)))
|
||||
commands.append("-bulge")
|
||||
commands.append("-bulge")
|
||||
commands.append(unicode(self.getParameterValue(lasgroundPro_new.BULGE)))
|
||||
commands.append("-spike")
|
||||
commands.append("-spike")
|
||||
commands.append(unicode(self.getParameterValue(lasgroundPro_new.SPIKE)))
|
||||
commands.append("-spike_down")
|
||||
commands.append("-spike_down")
|
||||
commands.append(unicode(self.getParameterValue(lasgroundPro_new.DOWN_SPIKE)))
|
||||
commands.append("-offset")
|
||||
commands.append("-offset")
|
||||
commands.append(unicode(self.getParameterValue(lasgroundPro_new.OFFSET)))
|
||||
else:
|
||||
else:
|
||||
commands.append("-" + lasgroundPro_new.TERRAINS[method])
|
||||
granularity = self.getParameterValue(lasgroundPro_new.GRANULARITY)
|
||||
if (granularity != 1):
|
||||
commands.append("-" + lasgroundPro_new.GRANULARITIES[granularity])
|
||||
if (granularity != 1):
|
||||
commands.append("-" + lasgroundPro_new.GRANULARITIES[granularity])
|
||||
self.addParametersOutputDirectoryCommands(commands)
|
||||
self.addParametersOutputAppendixCommands(commands)
|
||||
self.addParametersPointOutputFormatCommands(commands)
|
||||
|
||||
@ -74,21 +74,21 @@ class lasground_new(LAStoolsAlgorithm):
|
||||
self.addParametersHorizontalAndVerticalFeetCommands(commands)
|
||||
method = self.getParameterValue(lasground_new.TERRAIN)
|
||||
if (method == 5):
|
||||
commands.append("-step")
|
||||
commands.append("-step")
|
||||
commands.append(unicode(self.getParameterValue(lasground_new.STEP)))
|
||||
commands.append("-bulge")
|
||||
commands.append("-bulge")
|
||||
commands.append(unicode(self.getParameterValue(lasground_new.BULGE)))
|
||||
commands.append("-spike")
|
||||
commands.append("-spike")
|
||||
commands.append(unicode(self.getParameterValue(lasground_new.SPIKE)))
|
||||
commands.append("-spike_down")
|
||||
commands.append("-spike_down")
|
||||
commands.append(unicode(self.getParameterValue(lasground_new.DOWN_SPIKE)))
|
||||
commands.append("-offset")
|
||||
commands.append("-offset")
|
||||
commands.append(unicode(self.getParameterValue(lasground_new.OFFSET)))
|
||||
else:
|
||||
else:
|
||||
commands.append("-" + lasground_new.TERRAINS[method])
|
||||
granularity = self.getParameterValue(lasground_new.GRANULARITY)
|
||||
if (granularity != 1):
|
||||
commands.append("-" + lasground_new.GRANULARITIES[granularity])
|
||||
if (granularity != 1):
|
||||
commands.append("-" + lasground_new.GRANULARITIES[granularity])
|
||||
self.addParametersPointOutputCommands(commands)
|
||||
self.addParametersAdditionalCommands(commands)
|
||||
|
||||
|
||||
@ -44,8 +44,8 @@ class lasheight(LAStoolsAlgorithm):
|
||||
self.group, self.i18n_group = self.trAlgorithm('LAStools')
|
||||
self.addParametersVerboseGUI()
|
||||
self.addParametersPointInputGUI()
|
||||
self.addParametersIgnoreClass1GUI()
|
||||
self.addParametersIgnoreClass2GUI()
|
||||
self.addParametersIgnoreClass1GUI()
|
||||
self.addParametersIgnoreClass2GUI()
|
||||
self.addParameter(ParameterBoolean(lasheight.REPLACE_Z,
|
||||
self.tr("replace z"), False))
|
||||
self.addParameter(ParameterBoolean(lasheight.DROP_ABOVE,
|
||||
@ -63,8 +63,8 @@ class lasheight(LAStoolsAlgorithm):
|
||||
commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "lasheight")]
|
||||
self.addParametersVerboseCommands(commands)
|
||||
self.addParametersPointInputCommands(commands)
|
||||
self.addParametersIgnoreClass1Commands(commands)
|
||||
self.addParametersIgnoreClass2Commands(commands)
|
||||
self.addParametersIgnoreClass1Commands(commands)
|
||||
self.addParametersIgnoreClass2Commands(commands)
|
||||
if self.getParameterValue(lasheight.REPLACE_Z):
|
||||
commands.append("-replace_z")
|
||||
if self.getParameterValue(lasheight.DROP_ABOVE):
|
||||
|
||||
@ -44,8 +44,8 @@ class lasheightPro(LAStoolsAlgorithm):
|
||||
self.name, self.i18n_name = self.trAlgorithm('lasheightPro')
|
||||
self.group, self.i18n_group = self.trAlgorithm('LAStools Production')
|
||||
self.addParametersPointInputFolderGUI()
|
||||
self.addParametersIgnoreClass1GUI()
|
||||
self.addParametersIgnoreClass2GUI()
|
||||
self.addParametersIgnoreClass1GUI()
|
||||
self.addParametersIgnoreClass2GUI()
|
||||
self.addParameter(ParameterBoolean(lasheightPro.REPLACE_Z,
|
||||
self.tr("replace z"), False))
|
||||
self.addParameter(ParameterBoolean(lasheightPro.DROP_ABOVE,
|
||||
@ -67,8 +67,8 @@ class lasheightPro(LAStoolsAlgorithm):
|
||||
commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "lasheight")]
|
||||
self.addParametersVerboseCommands(commands)
|
||||
self.addParametersPointInputFolderCommands(commands)
|
||||
self.addParametersIgnoreClass1Commands(commands)
|
||||
self.addParametersIgnoreClass2Commands(commands)
|
||||
self.addParametersIgnoreClass1Commands(commands)
|
||||
self.addParametersIgnoreClass2Commands(commands)
|
||||
if self.getParameterValue(lasheightPro.REPLACE_Z):
|
||||
commands.append("-replace_z")
|
||||
if self.getParameterValue(lasheightPro.DROP_ABOVE):
|
||||
|
||||
@ -38,10 +38,10 @@ class lasheightPro_classify(LAStoolsAlgorithm):
|
||||
CLASSIFY_BELOW_HEIGHT = "CLASSIFY_BELOW_HEIGHT"
|
||||
CLASSIFY_BETWEEN1 = "CLASSIFY_BETWEEN1"
|
||||
CLASSIFY_BETWEEN1_HEIGHT_FROM = "CLASSIFY_BETWEEN1_HEIGHT_FROM"
|
||||
CLASSIFY_BETWEEN1_HEIGHT_TO= "CLASSIFY_BETWEEN1_HEIGHT_TO"
|
||||
CLASSIFY_BETWEEN1_HEIGHT_TO = "CLASSIFY_BETWEEN1_HEIGHT_TO"
|
||||
CLASSIFY_BETWEEN2 = "CLASSIFY_BETWEEN2"
|
||||
CLASSIFY_BETWEEN2_HEIGHT_FROM = "CLASSIFY_BETWEEN2_HEIGHT_FROM"
|
||||
CLASSIFY_BETWEEN2_HEIGHT_TO= "CLASSIFY_BETWEEN2_HEIGHT_TO"
|
||||
CLASSIFY_BETWEEN2_HEIGHT_TO = "CLASSIFY_BETWEEN2_HEIGHT_TO"
|
||||
CLASSIFY_ABOVE = "CLASSIFY_ABOVE"
|
||||
CLASSIFY_ABOVE_HEIGHT = "CLASSIFY_ABOVE_HEIGHT"
|
||||
|
||||
@ -51,8 +51,8 @@ class lasheightPro_classify(LAStoolsAlgorithm):
|
||||
self.name, self.i18n_name = self.trAlgorithm('lasheightPro_classify')
|
||||
self.group, self.i18n_group = self.trAlgorithm('LAStools Production')
|
||||
self.addParametersPointInputFolderGUI()
|
||||
self.addParametersIgnoreClass1GUI()
|
||||
self.addParametersIgnoreClass2GUI()
|
||||
self.addParametersIgnoreClass1GUI()
|
||||
self.addParametersIgnoreClass2GUI()
|
||||
self.addParameter(ParameterBoolean(lasheightPro_classify.REPLACE_Z,
|
||||
self.tr("replace z"), False))
|
||||
self.addParameter(ParameterSelection(lasheightPro_classify.CLASSIFY_BELOW,
|
||||
@ -86,32 +86,32 @@ class lasheightPro_classify(LAStoolsAlgorithm):
|
||||
commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "lasheight")]
|
||||
self.addParametersVerboseCommands(commands)
|
||||
self.addParametersPointInputFolderCommands(commands)
|
||||
self.addParametersIgnoreClass1Commands(commands)
|
||||
self.addParametersIgnoreClass2Commands(commands)
|
||||
self.addParametersIgnoreClass1Commands(commands)
|
||||
self.addParametersIgnoreClass2Commands(commands)
|
||||
if self.getParameterValue(lasheightPro_classify.REPLACE_Z):
|
||||
commands.append("-replace_z")
|
||||
classify = self.getParameterValue(lasheightPro_classify.CLASSIFY_BELOW)
|
||||
if (classify != 0):
|
||||
if (classify != 0):
|
||||
commands.append("-classify_below")
|
||||
commands.append(unicode(self.getParameterValue(lasheightPro_classify.CLASSIFY_BELOW_HEIGHT)))
|
||||
commands.append(unicode(classify))
|
||||
commands.append(unicode(classify))
|
||||
classify = self.getParameterValue(lasheightPro_classify.CLASSIFY_BETWEEN1)
|
||||
if (classify != 0):
|
||||
if (classify != 0):
|
||||
commands.append("-classify_between")
|
||||
commands.append(unicode(self.getParameterValue(lasheightPro_classify.CLASSIFY_BETWEEN1_HEIGHT_FROM)))
|
||||
commands.append(unicode(self.getParameterValue(lasheightPro_classify.CLASSIFY_BETWEEN1_HEIGHT_TO)))
|
||||
commands.append(unicode(classify))
|
||||
commands.append(unicode(classify))
|
||||
classify = self.getParameterValue(lasheightPro_classify.CLASSIFY_BETWEEN2)
|
||||
if (classify != 0):
|
||||
if (classify != 0):
|
||||
commands.append("-classify_between")
|
||||
commands.append(unicode(self.getParameterValue(lasheightPro_classify.CLASSIFY_BETWEEN2_HEIGHT_FROM)))
|
||||
commands.append(unicode(self.getParameterValue(lasheightPro_classify.CLASSIFY_BETWEEN2_HEIGHT_TO)))
|
||||
commands.append(unicode(classify))
|
||||
commands.append(unicode(classify))
|
||||
classify = self.getParameterValue(lasheightPro_classify.CLASSIFY_ABOVE)
|
||||
if (classify != 0):
|
||||
if (classify != 0):
|
||||
commands.append("-classify_above")
|
||||
commands.append(unicode(self.getParameterValue(lasheightPro_classify.CLASSIFY_ABOVE_HEIGHT)))
|
||||
commands.append(unicode(classify))
|
||||
commands.append(unicode(classify))
|
||||
self.addParametersOutputDirectoryCommands(commands)
|
||||
self.addParametersOutputAppendixCommands(commands)
|
||||
self.addParametersPointOutputFormatCommands(commands)
|
||||
|
||||
@ -38,10 +38,10 @@ class lasheight_classify(LAStoolsAlgorithm):
|
||||
CLASSIFY_BELOW_HEIGHT = "CLASSIFY_BELOW_HEIGHT"
|
||||
CLASSIFY_BETWEEN1 = "CLASSIFY_BETWEEN1"
|
||||
CLASSIFY_BETWEEN1_HEIGHT_FROM = "CLASSIFY_BETWEEN1_HEIGHT_FROM"
|
||||
CLASSIFY_BETWEEN1_HEIGHT_TO= "CLASSIFY_BETWEEN1_HEIGHT_TO"
|
||||
CLASSIFY_BETWEEN1_HEIGHT_TO = "CLASSIFY_BETWEEN1_HEIGHT_TO"
|
||||
CLASSIFY_BETWEEN2 = "CLASSIFY_BETWEEN2"
|
||||
CLASSIFY_BETWEEN2_HEIGHT_FROM = "CLASSIFY_BETWEEN2_HEIGHT_FROM"
|
||||
CLASSIFY_BETWEEN2_HEIGHT_TO= "CLASSIFY_BETWEEN2_HEIGHT_TO"
|
||||
CLASSIFY_BETWEEN2_HEIGHT_TO = "CLASSIFY_BETWEEN2_HEIGHT_TO"
|
||||
CLASSIFY_ABOVE = "CLASSIFY_ABOVE"
|
||||
CLASSIFY_ABOVE_HEIGHT = "CLASSIFY_ABOVE_HEIGHT"
|
||||
|
||||
@ -52,8 +52,8 @@ class lasheight_classify(LAStoolsAlgorithm):
|
||||
self.group, self.i18n_group = self.trAlgorithm('LAStools')
|
||||
self.addParametersVerboseGUI()
|
||||
self.addParametersPointInputGUI()
|
||||
self.addParametersIgnoreClass1GUI()
|
||||
self.addParametersIgnoreClass2GUI()
|
||||
self.addParametersIgnoreClass1GUI()
|
||||
self.addParametersIgnoreClass2GUI()
|
||||
self.addParameter(ParameterBoolean(lasheight_classify.REPLACE_Z,
|
||||
self.tr("replace z"), False))
|
||||
self.addParameter(ParameterSelection(lasheight_classify.CLASSIFY_BELOW,
|
||||
@ -83,32 +83,32 @@ class lasheight_classify(LAStoolsAlgorithm):
|
||||
commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "lasheight")]
|
||||
self.addParametersVerboseCommands(commands)
|
||||
self.addParametersPointInputCommands(commands)
|
||||
self.addParametersIgnoreClass1Commands(commands)
|
||||
self.addParametersIgnoreClass2Commands(commands)
|
||||
self.addParametersIgnoreClass1Commands(commands)
|
||||
self.addParametersIgnoreClass2Commands(commands)
|
||||
if self.getParameterValue(lasheight_classify.REPLACE_Z):
|
||||
commands.append("-replace_z")
|
||||
classify = self.getParameterValue(lasheight_classify.CLASSIFY_BELOW)
|
||||
if (classify != 0):
|
||||
if (classify != 0):
|
||||
commands.append("-classify_below")
|
||||
commands.append(unicode(self.getParameterValue(lasheight_classify.CLASSIFY_BELOW_HEIGHT)))
|
||||
commands.append(unicode(classify))
|
||||
commands.append(unicode(classify))
|
||||
classify = self.getParameterValue(lasheight_classify.CLASSIFY_BETWEEN1)
|
||||
if (classify != 0):
|
||||
if (classify != 0):
|
||||
commands.append("-classify_between")
|
||||
commands.append(unicode(self.getParameterValue(lasheight_classify.CLASSIFY_BETWEEN1_HEIGHT_FROM)))
|
||||
commands.append(unicode(self.getParameterValue(lasheight_classify.CLASSIFY_BETWEEN1_HEIGHT_TO)))
|
||||
commands.append(unicode(classify))
|
||||
commands.append(unicode(classify))
|
||||
classify = self.getParameterValue(lasheight_classify.CLASSIFY_BETWEEN2)
|
||||
if (classify != 0):
|
||||
if (classify != 0):
|
||||
commands.append("-classify_between")
|
||||
commands.append(unicode(self.getParameterValue(lasheight_classify.CLASSIFY_BETWEEN2_HEIGHT_FROM)))
|
||||
commands.append(unicode(self.getParameterValue(lasheight_classify.CLASSIFY_BETWEEN2_HEIGHT_TO)))
|
||||
commands.append(unicode(classify))
|
||||
commands.append(unicode(classify))
|
||||
classify = self.getParameterValue(lasheight_classify.CLASSIFY_ABOVE)
|
||||
if (classify != 0):
|
||||
if (classify != 0):
|
||||
commands.append("-classify_above")
|
||||
commands.append(unicode(self.getParameterValue(lasheight_classify.CLASSIFY_ABOVE_HEIGHT)))
|
||||
commands.append(unicode(classify))
|
||||
commands.append(unicode(classify))
|
||||
self.addParametersPointOutputCommands(commands)
|
||||
self.addParametersAdditionalCommands(commands)
|
||||
|
||||
|
||||
@ -47,7 +47,7 @@ class lasindex(LAStoolsAlgorithm):
|
||||
self.addParametersAdditionalGUI()
|
||||
|
||||
def processAlgorithm(self, progress):
|
||||
if (LAStoolsUtils.hasWine()):
|
||||
if (LAStoolsUtils.hasWine()):
|
||||
commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "lasindex.exe")]
|
||||
else:
|
||||
commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "lasindex")]
|
||||
|
||||
@ -48,7 +48,7 @@ class lasindexPro(LAStoolsAlgorithm):
|
||||
self.addParametersVerboseGUI()
|
||||
|
||||
def processAlgorithm(self, progress):
|
||||
if (LAStoolsUtils.hasWine()):
|
||||
if (LAStoolsUtils.hasWine()):
|
||||
commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "lasindex.exe")]
|
||||
else:
|
||||
commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "lasindex")]
|
||||
|
||||
@ -79,7 +79,7 @@ class lasinfo(LAStoolsAlgorithm):
|
||||
self.addParametersAdditionalGUI()
|
||||
|
||||
def processAlgorithm(self, progress):
|
||||
if (LAStoolsUtils.hasWine()):
|
||||
if (LAStoolsUtils.hasWine()):
|
||||
commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "lasinfo.exe")]
|
||||
else:
|
||||
commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "lasinfo")]
|
||||
|
||||
@ -74,7 +74,7 @@ class lasinfoPro(LAStoolsAlgorithm):
|
||||
self.addParametersVerboseGUI()
|
||||
|
||||
def processAlgorithm(self, progress):
|
||||
if (LAStoolsUtils.hasWine()):
|
||||
if (LAStoolsUtils.hasWine()):
|
||||
commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "lasinfo.exe")]
|
||||
else:
|
||||
commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "lasinfo")]
|
||||
|
||||
@ -56,7 +56,7 @@ class lasmerge(LAStoolsAlgorithm):
|
||||
self.addParametersAdditionalGUI()
|
||||
|
||||
def processAlgorithm(self, progress):
|
||||
if (LAStoolsUtils.hasWine()):
|
||||
if (LAStoolsUtils.hasWine()):
|
||||
commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "lasmerge.exe")]
|
||||
else:
|
||||
commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "lasmerge")]
|
||||
|
||||
@ -41,7 +41,7 @@ class lasmergePro(LAStoolsAlgorithm):
|
||||
self.addParametersVerboseGUI()
|
||||
|
||||
def processAlgorithm(self, progress):
|
||||
if (LAStoolsUtils.hasWine()):
|
||||
if (LAStoolsUtils.hasWine()):
|
||||
commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "lasmerge.exe")]
|
||||
else:
|
||||
commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "lasmerge")]
|
||||
|
||||
@ -91,11 +91,11 @@ class laspublish(LAStoolsAlgorithm):
|
||||
commands.append("-no_edl")
|
||||
if not self.getParameterValue(laspublish.SHOW_SKYBOX):
|
||||
commands.append("-no_skybox")
|
||||
portal_directory = self.getParameterValue(laspublish.PORTAL_DIRECTORY)
|
||||
portal_directory = self.getParameterValue(laspublish.PORTAL_DIRECTORY)
|
||||
if portal_directory != "":
|
||||
commands.append("-odir")
|
||||
commands.append('"' + portal_directory + '"')
|
||||
copy_or_move = self.getParameterValue(laspublish.COPY_OR_MOVE)
|
||||
copy_or_move = self.getParameterValue(laspublish.COPY_OR_MOVE)
|
||||
if (copy_or_move == 0):
|
||||
commands.append("-copy_source_files")
|
||||
elif (copy_or_move == 1):
|
||||
@ -103,15 +103,15 @@ class laspublish(LAStoolsAlgorithm):
|
||||
commands.append("-really_move")
|
||||
if self.getParameterValue(laspublish.OVERWRITE_EXISTING):
|
||||
commands.append("-overwrite")
|
||||
portal_html_page = self.getParameterValue(laspublish.PORTAL_HTML_PAGE)
|
||||
portal_html_page = self.getParameterValue(laspublish.PORTAL_HTML_PAGE)
|
||||
if portal_html_page != "":
|
||||
commands.append("-o")
|
||||
commands.append('"' + portal_html_page + '"')
|
||||
title = self.getParameterValue(laspublish.PORTAL_TITLE)
|
||||
title = self.getParameterValue(laspublish.PORTAL_TITLE)
|
||||
if title != "":
|
||||
commands.append("-title")
|
||||
commands.append('"' + title + '"')
|
||||
description = self.getParameterValue(laspublish.PORTAL_DESCRIPTION)
|
||||
description = self.getParameterValue(laspublish.PORTAL_DESCRIPTION)
|
||||
if description != "":
|
||||
commands.append("-description")
|
||||
commands.append('"' + description + '"')
|
||||
|
||||
@ -91,11 +91,11 @@ class laspublishPro(LAStoolsAlgorithm):
|
||||
commands.append("-no_edl")
|
||||
if not self.getParameterValue(laspublishPro.SHOW_SKYBOX):
|
||||
commands.append("-no_skybox")
|
||||
portal_directory = self.getParameterValue(laspublishPro.PORTAL_DIRECTORY)
|
||||
portal_directory = self.getParameterValue(laspublishPro.PORTAL_DIRECTORY)
|
||||
if portal_directory != "":
|
||||
commands.append("-odir")
|
||||
commands.append('"' + portal_directory + '"')
|
||||
copy_or_move = self.getParameterValue(laspublishPro.COPY_OR_MOVE)
|
||||
copy_or_move = self.getParameterValue(laspublishPro.COPY_OR_MOVE)
|
||||
if (copy_or_move == 0):
|
||||
commands.append("-copy_source_files")
|
||||
elif (copy_or_move == 1):
|
||||
@ -103,15 +103,15 @@ class laspublishPro(LAStoolsAlgorithm):
|
||||
commands.append("-really_move")
|
||||
if self.getParameterValue(laspublishPro.OVERWRITE_EXISTING):
|
||||
commands.append("-overwrite")
|
||||
portal_html_page = self.getParameterValue(laspublishPro.PORTAL_HTML_PAGE)
|
||||
portal_html_page = self.getParameterValue(laspublishPro.PORTAL_HTML_PAGE)
|
||||
if portal_html_page != "":
|
||||
commands.append("-o")
|
||||
commands.append('"' + portal_html_page + '"')
|
||||
title = self.getParameterValue(laspublishPro.PORTAL_TITLE)
|
||||
title = self.getParameterValue(laspublishPro.PORTAL_TITLE)
|
||||
if title != "":
|
||||
commands.append("-title")
|
||||
commands.append('"' + title + '"')
|
||||
description = self.getParameterValue(laspublishPro.PORTAL_DESCRIPTION)
|
||||
description = self.getParameterValue(laspublishPro.PORTAL_DESCRIPTION)
|
||||
if description != "":
|
||||
commands.append("-description")
|
||||
commands.append('"' + description + '"')
|
||||
|
||||
@ -47,8 +47,8 @@ class lasthin(LAStoolsAlgorithm):
|
||||
self.group, self.i18n_group = self.trAlgorithm('LAStools')
|
||||
self.addParametersVerboseGUI()
|
||||
self.addParametersPointInputGUI()
|
||||
self.addParametersIgnoreClass1GUI()
|
||||
self.addParametersIgnoreClass2GUI()
|
||||
self.addParametersIgnoreClass1GUI()
|
||||
self.addParametersIgnoreClass2GUI()
|
||||
self.addParameter(ParameterNumber(lasthin.THIN_STEP,
|
||||
self.tr("size of grid used for thinning"), 0, None, 1.0))
|
||||
self.addParameter(ParameterSelection(lasthin.OPERATION,
|
||||
@ -68,8 +68,8 @@ class lasthin(LAStoolsAlgorithm):
|
||||
commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "lasthin")]
|
||||
self.addParametersVerboseCommands(commands)
|
||||
self.addParametersPointInputCommands(commands)
|
||||
self.addParametersIgnoreClass1Commands(commands)
|
||||
self.addParametersIgnoreClass2Commands(commands)
|
||||
self.addParametersIgnoreClass1Commands(commands)
|
||||
self.addParametersIgnoreClass2Commands(commands)
|
||||
step = self.getParameterValue(lasthin.THIN_STEP)
|
||||
if step != 0.0:
|
||||
commands.append("-step")
|
||||
@ -77,7 +77,7 @@ class lasthin(LAStoolsAlgorithm):
|
||||
operation = self.getParameterValue(lasthin.OPERATION)
|
||||
if operation != 0:
|
||||
commands.append("-" + self.OPERATIONS[operation])
|
||||
if (operation >= 4):
|
||||
if (operation >= 4):
|
||||
commands.append(unicode(self.getParameterValue(lasthin.THRESHOLD_OR_INTERVAL)))
|
||||
if self.getParameterValue(lasthin.WITHHELD):
|
||||
commands.append("-withheld")
|
||||
|
||||
@ -46,8 +46,8 @@ class lasthinPro(LAStoolsAlgorithm):
|
||||
self.name, self.i18n_name = self.trAlgorithm('lasthinPro')
|
||||
self.group, self.i18n_group = self.trAlgorithm('LAStools Production')
|
||||
self.addParametersPointInputFolderGUI()
|
||||
self.addParametersIgnoreClass1GUI()
|
||||
self.addParametersIgnoreClass2GUI()
|
||||
self.addParametersIgnoreClass1GUI()
|
||||
self.addParametersIgnoreClass2GUI()
|
||||
self.addParameter(ParameterNumber(lasthinPro.THIN_STEP,
|
||||
self.tr("size of grid used for thinning"), 0, None, 1.0))
|
||||
self.addParameter(ParameterSelection(lasthinPro.OPERATION,
|
||||
@ -71,8 +71,8 @@ class lasthinPro(LAStoolsAlgorithm):
|
||||
commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "lasthin")]
|
||||
self.addParametersVerboseCommands(commands)
|
||||
self.addParametersPointInputFolderCommands(commands)
|
||||
self.addParametersIgnoreClass1Commands(commands)
|
||||
self.addParametersIgnoreClass2Commands(commands)
|
||||
self.addParametersIgnoreClass1Commands(commands)
|
||||
self.addParametersIgnoreClass2Commands(commands)
|
||||
step = self.getParameterValue(lasthinPro.THIN_STEP)
|
||||
if step != 0.0:
|
||||
commands.append("-step")
|
||||
@ -80,7 +80,7 @@ class lasthinPro(LAStoolsAlgorithm):
|
||||
operation = self.getParameterValue(lasthinPro.OPERATION)
|
||||
if (operation != 0):
|
||||
commands.append("-" + self.OPERATIONS[operation])
|
||||
if (operation >= 4):
|
||||
if (operation >= 4):
|
||||
commands.append(unicode(self.getParameterValue(lasthinPro.THRESHOLD_OR_INTERVAL)))
|
||||
if self.getParameterValue(lasthinPro.WITHHELD):
|
||||
commands.append("-withheld")
|
||||
|
||||
@ -51,7 +51,7 @@ class laszip(LAStoolsAlgorithm):
|
||||
self.addParametersAdditionalGUI()
|
||||
|
||||
def processAlgorithm(self, progress):
|
||||
if (LAStoolsUtils.hasWine()):
|
||||
if (LAStoolsUtils.hasWine()):
|
||||
commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "laszip.exe")]
|
||||
else:
|
||||
commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "laszip")]
|
||||
|
||||
@ -54,7 +54,7 @@ class laszipPro(LAStoolsAlgorithm):
|
||||
self.addParametersVerboseGUI()
|
||||
|
||||
def processAlgorithm(self, progress):
|
||||
if (LAStoolsUtils.hasWine()):
|
||||
if (LAStoolsUtils.hasWine()):
|
||||
commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "laszip.exe")]
|
||||
else:
|
||||
commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "laszip")]
|
||||
|
||||
@ -75,7 +75,7 @@ class txt2las(LAStoolsAlgorithm):
|
||||
self.addParametersAdditionalGUI()
|
||||
|
||||
def processAlgorithm(self, progress):
|
||||
if (LAStoolsUtils.hasWine()):
|
||||
if (LAStoolsUtils.hasWine()):
|
||||
commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "txt2las.exe")]
|
||||
else:
|
||||
commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "txt2las")]
|
||||
|
||||
@ -75,7 +75,7 @@ class txt2lasPro(LAStoolsAlgorithm):
|
||||
self.addParametersVerboseGUI()
|
||||
|
||||
def processAlgorithm(self, progress):
|
||||
if (LAStoolsUtils.hasWine()):
|
||||
if (LAStoolsUtils.hasWine()):
|
||||
commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "txt2las.exe")]
|
||||
else:
|
||||
commands = [os.path.join(LAStoolsUtils.LAStoolsPath(), "bin", "txt2las")]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user