Skip to content

Commit

Permalink
[Processing] Fix spatial subseting with GDAL warp.
Browse files Browse the repository at this point in the history
  • Loading branch information
radosuav committed Feb 14, 2017
1 parent 119e181 commit e9cfd0b
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 e9cfd0b

Please sign in to comment.