File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -121,26 +121,27 @@ def processAlgorithm(self, progress):
121
121
for out in self .outputs :
122
122
commands .append (out .name )
123
123
commands .append (out .value )
124
-
124
+
125
125
if self .roiFile :
126
- startX , startY = float (self .roiValues [0 ]), float (self .roiValues [0 ])
126
+ startX , startY = float (self .roiValues [0 ]), float (self .roiValues [1 ])
127
127
sizeX = float (self .roiValues [2 ]) - startX
128
128
sizeY = float (self .roiValues [3 ]) - startY
129
129
helperCommands = [
130
- path + os . sep + "otbcli_ExtractROI" ,
130
+ "otbcli_ExtractROI" ,
131
131
"-in" , self .roiInput ,
132
132
"-out" , self .roiFile ,
133
- "-startx" , startX ,
134
- "-starty" , startY ,
135
- "-sizex" , sizeX ,
136
- "-sizey" , sizeY ]
133
+ "-startx" , str (startX ),
134
+ "-starty" , str (startY ),
135
+ "-sizex" , str (sizeX ),
136
+ "-sizey" , str (sizeY )]
137
+ SextanteLog .addToLog (SextanteLog .LOG_INFO , helperCommands )
137
138
OTBUtils .executeOtb (helperCommands , progress )
138
139
139
140
loglines = []
140
141
loglines .append ("OTB execution command" )
141
142
for line in commands :
142
143
loglines .append (line )
143
- SextanteLog . addToLog ( SextanteLog . LOG_INFO , loglines )
144
+
144
145
OTBUtils .executeOtb (commands , progress )
145
146
146
147
You can’t perform that action at this time.
0 commit comments