5

When using graphical modeler in QGIS 3.6 I have added additional parameters to the model inputs for the buffer tool.

The model looks like this:

enter image description here

When running the tool the order of the parameters in the resultant window do not follow the order parameters were added. They appear to be listed alphabetically:

enter image description here

I can change this quite easily by exporting the model as a Python script (as per this question) and changing the order of the input parameters there:

enter image description here

This means my model is a now a Python script rather than a .model3 file. Is there any way to change the order of parameters through graphical modeler. Or alternatively is there a way to save a Python script as a .model3 file?

  • they will apear in the order of addition to the modell. – eurojam Jun 26 at 12:58
  • 1
    After much testing I've found this not to be true in QGIS 3.6.2 nor 3.4 – Oliver Burdekin Jun 26 at 13:12
  • This is a subject of hot debate and there is no current logical method to change the order in the GUI. However, this answer on another question found a great work around which I now use all the time. gis.stackexchange.com/a/316901/97475 – AWGIS Jun 26 at 15:41
  • 1
    Thanks @AWGIS. If you can provide a brief overview of the method and link to that question in an answer I'll accept. I've been experimenting and it works well as a wrokaround. – Oliver Burdekin Jun 27 at 8:58
1

There is not currently an intuitive method to achieve this in the Graphical Modeler GUI. A recent answer on another question linked here gave a great work-around that involves numbering the inputs in chronological order to act as Psuedo IDs. You can then rename the inputs after this to whatever you would like.

If you are editing an existing model then you need to create a new copy of the input parameter, give it an appropriate Psuedo ID then delete the existing input.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.