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 Stack Exchange
8 months ago
Get the weekly newsletter!
see an example newsletter