I'm making a plugin for Quantum GIS in python. I have a polygon layer and want to create a new feature.
So far, I have this because I need a polygon geometry to add the feature:
surface = QgsGeometry.fromPolygon (polygon)
The problem is that I do not create a polygon. I have a list of points where I want to place the polygon.
Can anyone help?