Skip to content
Browse files

OTB helper commands log.

git-svn-id: 881b9c09-3ef8-f3c2-ec3d-21d735c97f4d
  • Loading branch information committed Jun 19, 2012
1 parent b53e211 commit e0b6ab5e8e87f70be3d3ba2018b10fc7e7b3716b
Showing with 9 additions and 8 deletions.
  1. +9 −8 src/sextante/otb/
@@ -121,26 +121,27 @@ def processAlgorithm(self, progress):
for out in self.outputs:

if self.roiFile:
startX, startY = float(self.roiValues[0]), float(self.roiValues[0])
startX, startY = float(self.roiValues[0]), float(self.roiValues[1])
sizeX = float(self.roiValues[2]) - startX
sizeY = float(self.roiValues[3]) - startY
helperCommands = [
path + os.sep + "otbcli_ExtractROI",
"-in", self.roiInput,
"-out", self.roiFile,
"-startx", startX,
"-starty", startY,
"-sizex", sizeX,
"-sizey", sizeY]
"-startx", str(startX),
"-starty", str(startY),
"-sizex", str(sizeX),
"-sizey", str(sizeY)]
SextanteLog.addToLog(SextanteLog.LOG_INFO, helperCommands)
OTBUtils.executeOtb(helperCommands, progress)

loglines = []
loglines.append("OTB execution command")
for line in commands:
SextanteLog.addToLog(SextanteLog.LOG_INFO, loglines)

OTBUtils.executeOtb(commands, progress)

0 comments on commit e0b6ab5

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