def METHOD_NAME(self, r):
    layername, feat = r
    geom = feat['geometry']
    t = geom['type']
    coords = geom['coordinates']
    key = self.source.rowkey(r)
    if t == 'LineString':
        yield coords, self.plotColor(key), r
    elif t == 'Point':
        yield [coords], self.plotColor(key), r
    elif t == 'Polygon':
        for poly in coords:
            yield poly+[poly[0]], self.plotColor(key), r
    elif t == 'MultiLineString':
        for line in coords:
            yield line, self.plotColor(key), r
    elif t == 'MultiPolygon':
        for mpoly in coords:
            for poly in mpoly:
                yield poly+[poly[0]], self.plotColor(key), r
    else:
        vd.warning('unknown geometry type %s' % t)