Using pyqgis, i am trying to export some maps as images using QgsMapRenderer. Here is the layer/style setup, both load correctly:
lyr = QgsVectorLayer(uri.uri(), 'Report', 'postgres')styleload = lyr.loadNamedStyle(stylepath)if not styleload[1]: print 'Error loading report selected style'if...