File tree Expand file tree Collapse file tree 5 files changed +19
-0
lines changed
python/plugins/processing/algs/gdal Expand file tree Collapse file tree 5 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,10 @@ def getConsoleCommands(self):
7575 #arguments.append(filePath)
7676 arguments .append (unicode (self .getOutputValue (self .OUTPUT )))
7777
78+ out = unicode (self .getOutputValue (self .OUTPUT ))
79+ arguments .append ('-of' )
80+ arguments .append (GdalUtils .getFormatShortNameFromFilename (out ))
81+
7882 arguments .append ('-b' )
7983 arguments .append (unicode (self .getParameterValue (self .BAND )))
8084
Original file line number Diff line number Diff line change @@ -79,6 +79,10 @@ def getConsoleCommands(self):
7979 arguments .append (unicode (self .getParameterValue (self .INPUT )))
8080 arguments .append (unicode (self .getOutputValue (self .OUTPUT )))
8181
82+ out = unicode (self .getOutputValue (self .OUTPUT ))
83+ arguments .append ('-of' )
84+ arguments .append (GdalUtils .getFormatShortNameFromFilename (out ))
85+
8286 arguments .append ('-b' )
8387 arguments .append (unicode (self .getParameterValue (self .BAND )))
8488 arguments .append ('-z' )
Original file line number Diff line number Diff line change @@ -64,6 +64,9 @@ def getConsoleCommands(self):
6464 arguments .append ('-of' )
6565 arguments .append (GdalUtils .getFormatShortNameFromFilename (output ))
6666
67+ arguments .append ('-of' )
68+ arguments .append (GdalUtils .getFormatShortNameFromFilename (output ))
69+
6770 arguments .append ('-b' )
6871 arguments .append (unicode (self .getParameterValue (self .BAND )))
6972
Original file line number Diff line number Diff line change @@ -61,6 +61,10 @@ def getConsoleCommands(self):
6161 arguments .append (unicode (self .getParameterValue (self .INPUT )))
6262 arguments .append (unicode (self .getOutputValue (self .OUTPUT )))
6363
64+ out = unicode (self .getOutputValue (self .OUTPUT ))
65+ arguments .append ('-of' )
66+ arguments .append (GdalUtils .getFormatShortNameFromFilename (out ))
67+
6468 arguments .append ('-b' )
6569 arguments .append (unicode (self .getParameterValue (self .BAND )))
6670
Original file line number Diff line number Diff line change @@ -61,6 +61,10 @@ def getConsoleCommands(self):
6161 arguments .append (unicode (self .getParameterValue (self .INPUT )))
6262 arguments .append (unicode (self .getOutputValue (self .OUTPUT )))
6363
64+ out = unicode (self .getOutputValue (self .OUTPUT ))
65+ arguments .append ('-of' )
66+ arguments .append (GdalUtils .getFormatShortNameFromFilename (out ))
67+
6468 arguments .append ('-b' )
6569 arguments .append (unicode (self .getParameterValue (self .BAND )))
6670
You can’t perform that action at this time.
0 commit comments