Good question. Since QGIS is open-source - all the code is available on github. Just search for the ID of the algorithm to see it. Most algorithms are written in C++, some are Python. github.com/search?q=repo%3Aqgis%2FQGIS+zonalstatisticsfb&type=code
There are minor mistakes in the video like at 17:29 when it says f.setProgress(progress); that is not possible. By looking at the documentation it gets clarified. It is feedback.setProgress(progress). Similarly, at 15:38 save_options were also not defined. Since the document is super descriptive everything is pretty explained.
Thanks for reporting. You are correct. I was coding from memory and there are some bugs. As you mention - the course material has the correct and working code so please use that instead.
Hi Ujaval, is there a specific location where you can find the Python source code for each of the Processing Tools int the Toolbox?
Good question. Since QGIS is open-source - all the code is available on github. Just search for the ID of the algorithm to see it. Most algorithms are written in C++, some are Python. github.com/search?q=repo%3Aqgis%2FQGIS+zonalstatisticsfb&type=code
There are minor mistakes in the video like at 17:29 when it says f.setProgress(progress); that is not possible. By looking at the documentation it gets clarified. It is feedback.setProgress(progress). Similarly, at 15:38 save_options were also not defined. Since the document is super descriptive everything is pretty explained.
Thanks for reporting. You are correct. I was coding from memory and there are some bugs. As you mention - the course material has the correct and working code so please use that instead.