<reponame>CharlesRethman/HEA-Baselines-ZA-2015-Oct
l = iface.activeLayer()
iter = l.getFeatures()
geoms = []
for feature in iter:
    geom = feature.geometry()
    if not(geom.isMultipart()):
        l.boundingBox(feature.id())
        geoms.append(geom)
 
l = iface.activeLayer()
iter = l.getFeatures()
geoms = []
for feature in iter:
    geom = feature.geometry()
    if not(geom.isMultipart()):
        l.boundingBox(feature.id())
        geoms.append(geom)