Skip to content

Commit

Permalink
Update warp.py
Browse files Browse the repository at this point in the history
Changes suggested to address bug reported in #31276
  • Loading branch information
gkimbell committed Aug 21, 2019
1 parent 95073f9 commit 357f42e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/plugins/processing/algs/gdal/warp.py
Expand Up @@ -215,9 +215,9 @@ def getConsoleCommands(self, parameters, context, feedback, executing=True):
arguments.append(extent.yMaximum())

extentCrs = self.parameterAsCrs(parameters, self.TARGET_EXTENT_CRS, context)
if extentCrs:
if extentCrs.isValid():
arguments.append('-te_srs')
arguments.append(extentCrs.authid())
arguments.append(GdalUtils.gdal_crs_string(extentCrs))

if self.parameterAsBoolean(parameters, self.MULTITHREADING, context):
arguments.append('-multi')
Expand Down

0 comments on commit 357f42e

Please sign in to comment.