26
26
__revision__ = '$Format:%H$'
27
27
28
28
import os
29
- import subprocess
30
29
from processing .core .parameters import ParameterFile
31
30
from processing .core .parameters import ParameterNumber
32
31
from processing .core .outputs import OutputFile
@@ -50,7 +49,7 @@ def defineCharacteristics(self):
50
49
self .addParameter (ParameterNumber (
51
50
self .VALUE , self .tr ('Standard Deviation multiplier' )))
52
51
self .addParameter (ParameterNumber (
53
- self .VALUE , self .tr ('Window size' ), None , None , 10 ))
52
+ self .WINDOWSIZE , self .tr ('Window size' ), None , None , 10 ))
54
53
self .addOutput (OutputFile (
55
54
self .OUTPUT , self .tr ('Output filtered LAS file' )))
56
55
self .addAdvancedModifiers ()
@@ -59,10 +58,10 @@ def processAlgorithm(self, progress):
59
58
commands = [os .path .join (FusionUtils .FusionPath (), 'FilterData.exe' )]
60
59
commands .append ('/verbose' )
61
60
self .addAdvancedModifiersToCommand (commands )
62
- commands .append ('outlier' )
61
+ commands .append ('/ outlier' )
63
62
commands .append (unicode (self .getParameterValue (self .VALUE )))
64
63
commands .append (unicode (self .getParameterValue (self .WINDOWSIZE )))
65
- outFile = self .getOutputValue (self .OUTPUT ) + '.lda'
64
+ outFile = self .getOutputValue (self .OUTPUT )
66
65
commands .append (outFile )
67
66
files = self .getParameterValue (self .INPUT ).split (';' )
68
67
if len (files ) == 1 :
@@ -71,8 +70,3 @@ def processAlgorithm(self, progress):
71
70
FusionUtils .createFileList (files )
72
71
commands .append (FusionUtils .tempFileListFilepath ())
73
72
FusionUtils .runFusion (commands , progress )
74
- commands = [os .path .join (FusionUtils .FusionPath (), 'LDA2LAS.exe' )]
75
- commands .append (outFile )
76
- commands .append (self .getOutputValue (self .OUTPUT ))
77
- p = subprocess .Popen (commands , shell = True )
78
- p .wait ()
0 commit comments