Skip to content

Commit

Permalink
Merge pull request #4142 from radosuav/fix_gdal_warp
Browse files Browse the repository at this point in the history
[processing] fix spatial subseting with GDAL warp
  • Loading branch information
alexbruy authored Feb 14, 2017
2 parents 119e181 + e9cfd0b commit 9ce1fb4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/plugins/processing/algs/gdal/warp.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,10 @@ def getConsoleCommands(self):
arguments = []
arguments.append('-ot')
arguments.append(self.TYPE[self.getParameterValue(self.RTYPE)])
if len(srccrs) > 0:
if srccrs:
arguments.append('-s_srs')
arguments.append(srccrs)
if len(dstcrs) > 0:
if dstcrs:
arguments.append('-t_srs')
arguments.append(dstcrs)
if noData and len(noData) > 0:
Expand Down Expand Up @@ -177,7 +177,7 @@ def getConsoleCommands(self):
arguments.extend(rastext)

if GdalUtils.version() >= 2000000:
if rastext and rastext_crs is not None:
if rastext and rastext_crs:
arguments.append('-te_srs')
arguments.append(rastext_crs)

Expand Down

0 comments on commit 9ce1fb4

Please sign in to comment.