I'm using QgsMapRenderer to print a set of layers with a rotation. This is an excerpt from my code:
(...) i = QImage(QSize(600,600), QImage.Format_ARGB32_Premultiplied) r = QgsMapRenderer() rect = QgsRectangle(iface.mapCanvas().extent()) r.setExtent(rect) r.setRotation(iface.mapCanvas().rotation()) r.setOutputSize(i.size(), i.logicalDpiX()) r.render(p) (...) I'm obtaining the rotation from the one set by the user to the map canvas (which is rotated indeed) but the output image has no rotation applied. How should rotation be defined for a renderer? Giovanni
_______________________________________________ Qgis-developer mailing list Qgis-developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer