This question is very similar to these one , but it's doesn't work for me. This is my try: ........
vlayer.setCrs(QgsCoordinateReferenceSystem(25830)) iface.mapCanvas().mapRenderer().setDestinationCrs(QgsCoordinateReferenceSystem(25830)) But the dialog pop up asking for CRS to choose, and...