6

In the Processing modeler, many of the algorithm help tabs say:

Sorry, no help is available for this algorithm.

In the QGIS sourcecode, the processing algorithms seem to reside in:

python/plugins/processing/algs

What general pattern should I follow to add documentation for algorithms (e.g. file naming convention, location, etc)?

asked Nov 5, 2014 at 17:31

1 Answer 1

4

You can create help files via Scripts -> Tools -> Create New Script and in editing window hit Edit script help button. There you will find all the fields to fill.

enter image description here

enter image description here

If your script is script.py the name of the help-file must be script.py.help and it should be placed next to the script itself (in the same folder). For example in Linux the path to the folder is: ~/.qgis2/processing/scripts for Rython scripts and ~/.qgis2/processing/rscripts for R scripts. You can right-click any R or Python script in Processing Toolbox, click Edit script and hit the Save as button to where are these folders are located on your machine.

P.S. Note that absence of the help information doesn't mean that there is no help files. Some other guy and me created help files for processing algorithms while ago and they were even submitted (volaya himself handled that commit if I recall correctly). But nevertheless help tab was still empty for them (even for my scripts that already had help files). I didn't try to work it out since then though.

answered Nov 5, 2014 at 17:50
5
  • How do I access the Scripts menu? I do not see it on the main QGIS (2.6) interface or in the Processing interface. Commented Nov 5, 2014 at 19:17
  • Also, I would appreciate guidance as to where the help files should reside within the QGIS processing algs folder, relative to the script itself. Commented Nov 5, 2014 at 19:18
  • @BrylieOxley, answer updated. Commented Nov 5, 2014 at 19:53
  • Are the help files you created included somewhere in the distribution, or can they be found on Github? Commented Nov 6, 2014 at 7:17
  • @AndreJ, you can find them in the fdias's fork of QGIS repository. I can't find R sctipts there though. My scripts with help files are stored here I guess only one of them (unify extent and resolution) is not provided by QGIS now (but it is the most popular though). For further discussion you better contact me directly: my e-mail can be found here. Commented Nov 6, 2014 at 11:57

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.