How to get pixel size of canvas in QGIS?
It is possibly by python?
I mean this read rectangle area.
You can get those values with this code :
This returns a QSize object. You can catch width and height directly with
canvasSize = qgis.utils.iface.mapCanvas().size()
print("Width : " + str(canvasSize.width()) + " / Height : " + str(canvasSize.height()))
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
3 years ago
Get the weekly newsletter! In it, you'll get:
see an example newsletter