1

Is there a possibilty to use the GDAL console in a processing model?

As first step I'd like to resize cellsize of a raster and did it (without modeler) using the -tr X Ycommand.

Maybe there are other options which I don't know.

5
  • There are the Warp (reproject) and Translate (convert format) algorithms in the modeler which allows you to set Advanced parameters. Here you could insert your -tr X Y command in the Additional creation parameters.
    – Joseph
    Feb 20, 2017 at 12:58
  • @Joseph thank you. But with GDAl translate, I'll get this error: ERROR 5: -outsize and -tr options cannot be used at the same time.. Do you know where this is defined as I didn't change anything else to the standard settings.
    – Kevin
    Feb 20, 2017 at 13:14
  • The parameter Set the size of the output file (In pixels or %) and -tr cannot be used together. Try making it blank instead.
    – Joseph
    Feb 20, 2017 at 13:20
  • this is not accepted by QGIS. But instead of -tr I can also resize it with -outsize.
    – Kevin
    Feb 20, 2017 at 13:23
  • Nice one! Couldn't test this in modeler at the moment but if you can use -outsize then great :)
    – Joseph
    Feb 20, 2017 at 13:30

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.