I am trying to get a set of map images with a Python script in QGIS. I load the background raster and my csv vector file and then I try to get the image. When I start the example from the PyQGIS cookbook (http://docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/composer.html) I get the following error:
img = QImage(QSize(800, 600), QImage.Format_ARGB32_Premultiplied)Traceback (most recent call last): File "", line 1, in NameError: name 'QSize' is not definedI looked at a closed question NameError: name 'QImage' is not defined and used the suggestion:
from PyQt4.QtGui import *That didn't work. Any ideas?
أكثر...
img = QImage(QSize(800, 600), QImage.Format_ARGB32_Premultiplied)Traceback (most recent call last): File "", line 1, in NameError: name 'QSize' is not definedI looked at a closed question NameError: name 'QImage' is not defined and used the suggestion:
from PyQt4.QtGui import *That didn't work. Any ideas?
أكثر...