Skip to content
Permalink
Browse files

Update FilterData.py

fixed an error and updated to latest behaviour
  • Loading branch information
spono committed Nov 15, 2015
1 parent e6d495a commit b501d5f563067647d7feade50e2c82ce925bde38
Showing with 2 additions and 5 deletions.
  1. +2 −5 python/plugins/processing/algs/lidar/fusion/FilterData.py
@@ -50,7 +50,7 @@ def defineCharacteristics(self):
self.addParameter(ParameterNumber(
self.VALUE, self.tr('Standard Deviation multiplier')))
self.addParameter(ParameterNumber(
self.VALUE, self.tr('Window size'), None, None, 10))
self.WINDOWSIZE, self.tr('Window size'), None, None, 10))
self.addOutput(OutputFile(
self.OUTPUT, self.tr('Output filtered LAS file')))
self.addAdvancedModifiers()
@@ -62,7 +62,7 @@ def processAlgorithm(self, progress):
commands.append('outlier')
commands.append(unicode(self.getParameterValue(self.VALUE)))
commands.append(unicode(self.getParameterValue(self.WINDOWSIZE)))
outFile = self.getOutputValue(self.OUTPUT) + '.lda'
outFile = self.getOutputValue(self.OUTPUT)
commands.append(outFile)
files = self.getParameterValue(self.INPUT).split(';')
if len(files) == 1:
@@ -71,8 +71,5 @@ def processAlgorithm(self, progress):
FusionUtils.createFileList(files)
commands.append(FusionUtils.tempFileListFilepath())
FusionUtils.runFusion(commands, progress)
commands = [os.path.join(FusionUtils.FusionPath(), 'LDA2LAS.exe')]
commands.append(outFile)
commands.append(self.getOutputValue(self.OUTPUT))
p = subprocess.Popen(commands, shell=True)
p.wait()

0 comments on commit b501d5f

Please sign in to comment.
You can’t perform that action at this time.