Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
qgib opened this issue Jan 18, 2018 · 6 comments
Closed

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

qgib opened this issue Jan 18, 2018 · 6 comments
Labels
Feature Request Processing Relating to QGIS Processing framework or individual Processing algorithms

Comments

@qgib
Copy link
Contributor

qgib commented Jan 18, 2018

Author Name: Peter Drexel (Peter Drexel)
Original Redmine Issue: 17889

Redmine category:processing/gdal
Assignee: Victor Olaya


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].

@qgib
Copy link
Contributor Author

qgib commented Jan 22, 2018

Author Name: Alexander Bruy (@alexbruy)


This is should be a feature request, not bug.


  • subject was changed from Processing Clip raster by extent to Add support for '-tr' parameter in clip raster tools
  • tracker_id was changed from 1 to 2

@qgib
Copy link
Contributor Author

qgib commented Jan 23, 2018

Author Name: Peter Drexel (Peter Drexel)


OK, but it is a regression.
Thanks
Peter

@qgib
Copy link
Contributor Author

qgib commented Feb 1, 2018

Author Name: Alexander Bruy (@alexbruy)


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


  • priority_id was changed from High to Normal

@qgib
Copy link
Contributor Author

qgib commented Feb 2, 2018

Author Name: Peter Drexel (Peter Drexel)


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

@qgib qgib added Feature Request Processing Relating to QGIS Processing framework or individual Processing algorithms labels May 25, 2019
@alexbruy
Copy link
Contributor

Related to #26280

@alexbruy
Copy link
Contributor

Implemented in c224a01

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request Processing Relating to QGIS Processing framework or individual Processing algorithms
Projects
None yet
Development

No branches or pull requests

2 participants