run gdal_calc on Windows and gdal_calc.py on othes platforms (fixes #19482)

This commit is contained in:
Juergen E. Fischer 2018-09-16 21:55:10 +02:00
parent 8aded8606e
commit 239e93deeb
2 changed files with 1075 additions and 1053 deletions

View File

@ -176,7 +176,7 @@ class gdalcalc(GdalAlgorithm):
return 'rastermiscellaneous' return 'rastermiscellaneous'
def commandName(self): def commandName(self):
return 'gdal_calc' return 'gdal_calc' if isWindows() else 'gdal_calc.py'
def getConsoleCommands(self, parameters, context, feedback, executing=True): def getConsoleCommands(self, parameters, context, feedback, executing=True):
out = self.parameterAsOutputLayer(parameters, self.OUTPUT, context) out = self.parameterAsOutputLayer(parameters, self.OUTPUT, context)

File diff suppressed because it is too large Load Diff