Feature request #15033

Processing: Warp should include -te_srs parameter

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

Status:Closed
Priority:Normal
Assignee:Victor Olaya
Category:Processing/GDAL
Pull Request or Patch supplied:No Resolution:
Easy fix?:No Copied to github as #:22980

Description

-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 3 years ago

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

History

#1 Updated by Alexander Bruy over 3 years ago

  • Tracker changed from Bug report to Feature request

#2 Updated by Alexander Bruy over 3 years ago

  • Status changed from Open to Closed

#3 Updated by Tom Chadwin over 3 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
self.processAlgorithm(progress)
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:

https://github.com/qgis/QGIS/pull/3310

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

https://github.com/qgis/QGIS/pull/3310/files#r70984948

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