Feature request #17889

Add support for '-tr' parameter in clip raster tools

Added by Peter Drexel almost 7 years ago. Updated almost 7 years ago.

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

Description

When I
clip a raster by extent
using the toolbox I cannot change the resolution (ie "-tr 5 5") of the Output-Raster anymore.
I Tried using the Additional creation parameters but that adds "-co" to the command.

gdal_translate -projwin -34410 234733 -34139 234530 -ot Float32 -of GTiff -co -tr=5 5 V:/Geodaten/Luftbilder/Orthofotos/Vlbg/ef2015_10cm.ecw C:/temp/OUTPUT.tif

In QGIS 2.18 I can add the -tr-Parameter by using the "Additional creation parameters [optional].

History

#1 Updated by Alexander Bruy almost 7 years ago

  • Subject changed from Processing Clip raster by extent to Add support for '-tr' parameter in clip raster tools
  • Tracker changed from Bug report to Feature request

This is should be a feature request, not bug.

#2 Updated by Peter Drexel almost 7 years ago

OK, but it is a regression.
Thanks
Peter

#3 Updated by Alexander Bruy almost 7 years ago

  • Priority changed from High to Normal

This is not regression. GdalTools and Processing are different plugins and they have different UI.

#4 Updated by Peter Drexel almost 7 years ago

As I am able to change the resolution of the output-raster in 2.18 and not in 2.99 I would still call it a regression...

Both versions use gdal_translate, but in 2.99 i can not find q way to pass "-tr" to the tool.

In 2.18: gdal:gdalogr:cliprasterbyextent
gdal_translate -of GTiff -ot Float32 -projwin -70000.0 277500.0 -2500.0 187500.0 -co COMPRESS=DEFLATE -co PREDICTOR=1 -co ZLEVEL=6 c:/ef2015_10cm.ecw C:/temp/OUTPUT.tif

In 2.99: gdal:cliprasterbyextent
gdal_translate -projwin -27042.60552715909 246338.32765744213 -24485.768953397805 244366.07958437916 -ot Float32 -of GTiff c:/ef2015_10cm.ecw C:/temp/OUTPUT.tif

Also available in: Atom PDF