Monday, 6 November 2017

Where to track the status of Processing in QGIS 2.99?


I've understood that the processing algs are going to be implemented in the master version of qgis. What is the best way to track the status of which algs that are implemented and the plan for the rest?




Answer



I guess calling various methods from classes is still an ongoing development. As a workaround, you can use the following to return a help description (of what I can only assume are for the algorithms currently implemented). This help description is set in a dictionary containing the algorithm name and its explanation:


processing.algs.help.shortHelp

But it's a little hard to read:


Help description




But we can format it a little using:


 print("{" + "\n".join("{}: {}".format(k, v) for k, v in processing.algs.help.shortHelp.items()) + "}")


Which is clearer:


Formatted help




And if you only want the algorithm names, you can use:


for key, value in processing.algs.help.shortHelp.items():
print(key)

Processing algorithms


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...