Skip to content
Permalink
Browse files

[Processing] Fix spatial subseting with GDAL warp.

  • Loading branch information
radosuav committed Feb 14, 2017
1 parent 119e181 commit e9cfd0b276468128f56bd6ddad1c2259adab18ae
Showing with 3 additions and 3 deletions.
  1. +3 −3 python/plugins/processing/algs/gdal/warp.py
@@ -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:
@@ -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)

0 comments on commit e9cfd0b

Please sign in to comment.
You can’t perform that action at this time.