Skip to content
Permalink
Browse files

[sextante] change saga algorithms to use full name for cmdname

  • Loading branch information
volaya committed Jul 14, 2013
1 parent afb6bd3 commit b7bdb4c0999893d3f5e64cfa7e9ef5946ad9524b
Showing with 8 additions and 7 deletions.
  1. +8 −7 python/plugins/sextante/saga/SagaAlgorithm.py
@@ -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.
You can’t perform that action at this time.