File tree Expand file tree Collapse file tree 4 files changed +20
-0
lines changed
python/plugins/processing/algs/gdal Expand file tree Collapse file tree 4 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,11 @@ def getConsoleCommands(self):
105
105
arguments .append (params )
106
106
arguments .append ('-ot' )
107
107
arguments .append (self .TYPE [self .getParameterValue (self .RTYPE )])
108
+
109
+ out = self .getOutputValue (self .OUTPUT )
110
+ arguments .append ('-of' )
111
+ arguments .append (GdalUtils .getFormatShortNameFromFilename (out ))
112
+
108
113
arguments .append (unicode (self .getParameterValue (self .INPUT )))
109
114
arguments .append (unicode (self .getOutputValue (self .OUTPUT )))
110
115
Original file line number Diff line number Diff line change @@ -124,6 +124,11 @@ def getConsoleCommands(self):
124
124
arguments .append (params )
125
125
arguments .append ('-ot' )
126
126
arguments .append (self .TYPE [self .getParameterValue (self .RTYPE )])
127
+
128
+ out = self .getOutputValue (self .OUTPUT )
129
+ arguments .append ('-of' )
130
+ arguments .append (GdalUtils .getFormatShortNameFromFilename (out ))
131
+
127
132
arguments .append (unicode (self .getParameterValue (self .INPUT )))
128
133
arguments .append (unicode (self .getOutputValue (self .OUTPUT )))
129
134
Original file line number Diff line number Diff line change @@ -118,6 +118,11 @@ def getConsoleCommands(self):
118
118
arguments .append (params )
119
119
arguments .append ('-ot' )
120
120
arguments .append (self .TYPE [self .getParameterValue (self .RTYPE )])
121
+
122
+ out = self .getOutputValue (self .OUTPUT )
123
+ arguments .append ('-of' )
124
+ arguments .append (GdalUtils .getFormatShortNameFromFilename (out ))
125
+
121
126
arguments .append (unicode (self .getParameterValue (self .INPUT )))
122
127
arguments .append (unicode (self .getOutputValue (self .OUTPUT )))
123
128
Original file line number Diff line number Diff line change @@ -102,6 +102,11 @@ def getConsoleCommands(self):
102
102
arguments .append (params )
103
103
arguments .append ('-ot' )
104
104
arguments .append (self .TYPE [self .getParameterValue (self .RTYPE )])
105
+
106
+ out = self .getOutputValue (self .OUTPUT )
107
+ arguments .append ('-of' )
108
+ arguments .append (GdalUtils .getFormatShortNameFromFilename (out ))
109
+
105
110
arguments .append (unicode (self .getParameterValue (self .INPUT )))
106
111
arguments .append (unicode (self .getOutputValue (self .OUTPUT )))
107
112
You can’t perform that action at this time.
0 commit comments