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:
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:
And if you only want the algorithm names, you can use:
for key, value in processing.algs.help.shortHelp.items():
print(key)
No comments:
Post a Comment