I am a QGIS python user. I want to iterate over the rings of a polygon to remove holes in the polygon, so:
- I need to iterate over the rings in a QgsGeometry polygon
- I need to detect the main ring of the polygon
- I need to remove every ring, which is not the main ring
How can I do that in python QGIS?
QgsGeometry.deleteRing(int, int partNum=0) -> bool
. I'm not an expert so hopefully others can advise.