Skip to content

Commit

Permalink
OTB and GRASS commandline to log.
Browse files Browse the repository at this point in the history
git-svn-id: http://sextante.googlecode.com/svn/trunk/soft/bindings/qgis-plugin@335 881b9c09-3ef8-f3c2-ec3d-21d735c97f4d
  • Loading branch information
cpolymeris@gmail.com committed Aug 6, 2012
1 parent 6bf0bfe commit cb99d37
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sextante/grass/GrassAlgorithm.py
Expand Up @@ -274,6 +274,7 @@ def processAlgorithm(self, progress):
loglines = []
loglines.append("GRASS execution commands")
for line in commands:
progress.setInfo(line)
loglines.append(line)
if SextanteConfig.getSetting(GrassUtils.GRASS_LOG_COMMANDS):
SextanteLog.addToLog(SextanteLog.LOG_INFO, loglines)
Expand Down Expand Up @@ -340,4 +341,4 @@ def commandLineName(self):
# return "This algorithm cannot be run with the 'auto-region' setting\nPlease set a GRASS region before running it"
# else:
# return None
#===============================================================================
#===============================================================================
1 change: 1 addition & 0 deletions src/sextante/otb/OTBAlgorithm.py
Expand Up @@ -142,6 +142,7 @@ def processAlgorithm(self, progress):
"-sizex", str(sizeX),
"-sizey", str(sizeY)]
SextanteLog.addToLog(SextanteLog.LOG_INFO, helperCommands)
progress.setInfo(helperCommands)
OTBUtils.executeOtb(helperCommands, progress)

if self.roiRasters:
Expand Down

0 comments on commit cb99d37

Please sign in to comment.