File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
python/plugins/processing/algs/gdal Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -141,10 +141,10 @@ def getConsoleCommands(self):
141141 arguments = []
142142 arguments .append ('-ot' )
143143 arguments .append (self .TYPE [self .getParameterValue (self .RTYPE )])
144- if len ( srccrs ) > 0 :
144+ if srccrs :
145145 arguments .append ('-s_srs' )
146146 arguments .append (srccrs )
147- if len ( dstcrs ) > 0 :
147+ if dstcrs :
148148 arguments .append ('-t_srs' )
149149 arguments .append (dstcrs )
150150 if noData and len (noData ) > 0 :
@@ -177,7 +177,7 @@ def getConsoleCommands(self):
177177 arguments .extend (rastext )
178178
179179 if GdalUtils .version () >= 2000000 :
180- if rastext and rastext_crs is not None :
180+ if rastext and rastext_crs :
181181 arguments .append ('-te_srs' )
182182 arguments .append (rastext_crs )
183183
You can’t perform that action at this time.
0 commit comments