In QgisQGIS, I have made a polygon, and from that polygon I have made a vector grid via research tools-> vector grid. The grid covers the entire polygon.
Now I want to extract these grid points in the python console so I can work with them. But I can not figure out how to extract these coordinates.
I have done the following:
Layer = qgis.utils.iface.activeLayer()
provider = Layer.dataProvider()
feat = QgsFeature()
allAttrs = provider.attributeIndexes()
provider.select(allAttrs)
geom = feat.geometry()
but from here I do not know what to do. Any help?