Feature request #15033
Processing: Warp should include -te_srs parameter
|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.
#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
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.