Feature request #15033

Processing: Warp should include -te_srs parameter

Added by Luca Casagrande over 7 years ago. Updated over 7 years ago.

Assignee:Victor Olaya
Pull Request or Patch supplied:No Resolution:
Easy fix?:No Copied to github as #:22980


-te_srs srs_def: (GDAL >= 2.0) Specifies the SRS in which to interpret the coordinates given with -te.

Without this parameter, the extent will be considered expressed using the target SRS.
This can generate very big file when target is, for example, EPSG:4326.

Associated revisions

Revision b9b8d37c
Added by Alexander Bruy over 7 years ago

[processing] add "-te_srs" option to gdal_warp (fix #15033)


#1 Updated by Alexander Bruy over 7 years ago

  • Tracker changed from Bug report to Feature request

#2 Updated by Alexander Bruy over 7 years ago

  • Status changed from Open to Closed

#3 Updated by Tom Chadwin over 7 years ago

This (in 2.16) fails for me on Ubuntu Trusty, without GDAL2:

2016-07-15T16:37:11 2 Uncaught error while executing algorithm
Traceback (most recent call last):
File "/usr/share/qgis/python/plugins/processing/core/GeoAlgorithm.py", line 203, in execute
File "/usr/share/qgis/python/plugins/processing/algs/gdal/GdalAlgorithm.py", line 51, in processAlgorithm
commands = self.getConsoleCommands()
File "/usr/share/qgis/python/plugins/processing/algs/gdal/warp.py", line 179, in getConsoleCommands
if rastext and len(rastext_crs) > 0:
TypeError: object of type 'NoneType' has no len()

I've submitted a PR:


However, I am unclear if the fix should in fact be as simple as in this line note:


Just to be clear, I've not deliberately avoided GDAL2 - my installation simply seems not to have it, and leads to the failure.

Also available in: Atom PDF