Skip to content

Commit

Permalink
[sextante] change saga algorithms to use full name for cmdname
Browse files Browse the repository at this point in the history
  • Loading branch information
volaya committed Jul 14, 2013
1 parent afb6bd3 commit b7bdb4c
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions python/plugins/sextante/saga/SagaAlgorithm.py
Expand Up @@ -364,15 +364,16 @@ def checkParameterValuesBeforeExecuting(self):
layer = QGisLayers.getObjectFromUri(value)
if layer is not None and layer.bandCount() > 1:
return ("Input layer " + str(layer.name()) + " has more than one band.\n"
+ "Multiband layers are not supported by SAGA")

+ "Multiband layers are not supported by SAGA")

def helpFile(self):
return os.path.join(os.path.dirname(__file__), "help", self.name.replace(" ", "") + ".html")


def commandLineName(self):
name = self.provider.getName().lower() + ":" + self.cmdname.lower()
validChars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789:"
name = ''.join(c for c in name if c in validChars)
return name
#===========================================================================
# def commandLineName(self):
# name = self.provider.getName().lower() + ":" + self.cmdname.lower()
# validChars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789:"
# name = ''.join(c for c in name if c in validChars)
# return name
#===========================================================================

0 comments on commit b7bdb4c

Please sign in to comment.