Skip to content
Permalink
Browse files

Merge pull request #4142 from radosuav/fix_gdal_warp

[processing] fix spatial subseting with GDAL warp
  • Loading branch information
alexbruy committed Feb 14, 2017
2 parents 119e181 + e9cfd0b commit 9ce1fb4776e32f6a2279d0ba8bb1a74409e88f01
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 9ce1fb4

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