mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
run gdal_calc on Windows and gdal_calc.py on othes platforms (fixes #19482)
This commit is contained in:
parent
8aded8606e
commit
239e93deeb
@ -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
Loading…
x
Reference in New Issue
Block a user