We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 119e181 + e9cfd0b commit 9ce1fb4Copy full SHA for 9ce1fb4
python/plugins/processing/algs/gdal/warp.py
@@ -141,10 +141,10 @@ def getConsoleCommands(self):
141
arguments = []
142
arguments.append('-ot')
143
arguments.append(self.TYPE[self.getParameterValue(self.RTYPE)])
144
- if len(srccrs) > 0:
+ if srccrs:
145
arguments.append('-s_srs')
146
arguments.append(srccrs)
147
- if len(dstcrs) > 0:
+ if dstcrs:
148
arguments.append('-t_srs')
149
arguments.append(dstcrs)
150
if noData and len(noData) > 0:
@@ -177,7 +177,7 @@ def getConsoleCommands(self):
177
arguments.extend(rastext)
178
179
if GdalUtils.version() >= 2000000:
180
- if rastext and rastext_crs is not None:
+ if rastext and rastext_crs:
181
arguments.append('-te_srs')
182
arguments.append(rastext_crs)
183
0 commit comments