I'm very beginner in QGIS and I want to erase Features by using PyQGIS. I have written this code. So far, it give me the geometry of each feature polygon layer, but I don't know how to erase it through coding?
layer = iface.activeLayer() #get active layer for f in layer.getFeatures(): geom = f.geometry() print geom.asPolygon() #get polygon
As picture suggested, a big polygon contains small polygon. I want to erase all small polygons in that same layer so if i move small polygon after erase hallow will be shown in big polygon.