mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
[processing] use '-te_crs' parameter only if supported by GDAL
This commit is contained in:
parent
572a60b7af
commit
7f6bae1f5e
@ -89,7 +89,7 @@ class warp(GdalAlgorithm):
|
||||
self.tr('Resampling method'), self.METHOD_OPTIONS))
|
||||
self.addParameter(ParameterExtent(self.RAST_EXT, self.tr('Raster extent')))
|
||||
|
||||
if GdalUtils.version() > 2000000:
|
||||
if GdalUtils.version() >= 2000000:
|
||||
self.addParameter(ParameterCrs(self.EXT_CRS,
|
||||
self.tr('CRS of the raster extent'), ''))
|
||||
|
||||
@ -176,9 +176,10 @@ class warp(GdalAlgorithm):
|
||||
if rastext:
|
||||
arguments.extend(rastext)
|
||||
|
||||
if rastext and rastext_crs is not None:
|
||||
arguments.append('-te_srs')
|
||||
arguments.append(rastext_crs)
|
||||
if GdalUtils.version() >= 2000000:
|
||||
if rastext and rastext_crs is not None:
|
||||
arguments.append('-te_srs')
|
||||
arguments.append(rastext_crs)
|
||||
|
||||
if extra and len(extra) > 0:
|
||||
arguments.append(extra)
|
||||
|
Loading…
x
Reference in New Issue
Block a user