2

I want to zoom into the current active QGIS canvas from a standalone python script.

I tried the following but it doesn't impact the current QGIS canvas:

import qgis.utils
canvas = qgis.utils.iface.mapCanvas()
canvas.zoomIn()

Can I modify the QGIS app from a standalone python script (not from the QGIS Python console)? If so, how do I do that?

ustroetz
  • 7,994
  • 10
  • 72
  • 118

0 Answers0