temp polygon layer in the desired crs #make it editable, selected, then open python console # paste and run this: f = QgsFeature() f.setGeometry(QgsGeometry.fromRect(qgis.utils.iface.mapCanvas().extent())) l = qgis.utils.iface.activeLayer() l.startEditing() l.addFeature(f) l.commitChanges()