Re: [QGIS-Developer] Unable to export map with PyQGIS 3

2018-10-24 Thread Dimitris Kar
Thanks a lot all! On Wed, Oct 24, 2018 at 12:23 PM Kari Salovaara wrote: > Please look at > https://locatepress.com/books > where You can find all essential for QGIS > > Cheers, Kari > > Dimitris Kar kirjoitti 24.10.2018 klo 11:21: > > Hey Raymond, > > Thank you very much for your answer. It

Re: [QGIS-Developer] Unable to export map with PyQGIS 3

2018-10-24 Thread Kari Salovaara
Please look at https://locatepress.com/books where You can find all essential for QGIS Cheers, Kari Dimitris Kar kirjoitti 24.10.2018 klo 11:21: Hey Raymond, Thank you very much for your answer. It worked. Are you aware of any resources, online trainings, books or anything else which focuses

Re: [QGIS-Developer] Unable to export map with PyQGIS 3

2018-10-24 Thread Raymond Nijssen
There is the cookbook, but it is quite outdated since qgis3: https://docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/index.html There is the python api docummentation, I think you already found it: https://qgis.org/pyqgis/master/index.html There are many unit tests in python that

Re: [QGIS-Developer] Unable to export map with PyQGIS 3

2018-10-24 Thread Dimitris Kar
Hey Raymond, Thank you very much for your answer. It worked. Are you aware of any resources, online trainings, books or anything else which focuses on the pyqgis3? What would be your recommendation on this. Cheers Dimitris On Wed, Oct 24, 2018 at 10:09 AM Raymond Nijssen wrote: > Hi Dimitris,

Re: [QGIS-Developer] Unable to export map with PyQGIS 3

2018-10-24 Thread Raymond Nijssen
Hi Dimitris, It is indeed hard to learn pyqgis 3 with outdated docs. The following code worked for me (suggested by Martin Dobias): settings = QgsMapSettings() settings.setOutputSize(QSize(512,512)) settings.setExtent(layer.extent()) settings.setLayers([layer]) job =