I am very new to Qgis platform and I used a piece of code that I took from coockbook to iterate over all the polygons in a layer. But it is always showing me an error "NameError: name 'QGis' is not defined". can someone give me a solution for this? If you can explain it would be better because I am just a beginner and I am still trying to understand the inbuilt functions.
this is what I did in my code
this is the extracted code from the cookbook
2.1m questions
2.1m answers
60 comments
57.0k users