<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Some of Gary Sherman's blogs provide good info on this sort of thing. Like<br><br><a href="http://spatialgalaxy.net/2012/01/27/qgis-running-scripts-in-the-python-console/">http://spatialgalaxy.net/2012/01/27/qgis-running-scripts-in-the-python-console/</a><br><br><br>Brent Wood<br><br>--- On <b>Mon, 3/19/12, Martin Dobias <i><wonder.sk@gmail.com></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Martin Dobias <wonder.sk@gmail.com><br>Subject: Re: [Qgis-developer] Scripting QGIS from the outside using Python<br>To: "Nathan Woodrow" <madmanwoo@gmail.com><br>Cc: qgis-developer@lists.osgeo.org<br>Date: Monday, March 19, 2012, 7:51 AM<br><br><div class="plainMail">On Thu, Mar 15, 2012 at 2:29 PM, Nathan Woodrow <<a ymailto="mailto:madmanwoo@gmail.com"
href="/mc/compose?to=madmanwoo@gmail.com">madmanwoo@gmail.com</a>> wrote:<br>> Is it possible to:<br>><br>> Load QGIS from Python (well I know how to do this using<br>> QgsApplicaiton.Init())<br>> Open the project file<br>> Zoom to a location<br>> Print the first composer to pdf<br>> OR render out the map canvas to a image.<br><br>Hi Nathan<br><br>yes that's all possible from an external python script with PyQGIS,<br>without actually starting GUI.<br><br>> From what I can see the only way is to create a new composer item and pass<br>> it the composer node from the xml.<br><br>No need to play with XML, everything can be done using API, there is<br>an example in the cookbook:<br><a href="http://qgis.org/pyqgis-cookbook/composer.html" target="_blank">http://qgis.org/pyqgis-cookbook/composer.html</a><br><br>Martin<br>_______________________________________________<br>Qgis-developer mailing list<br><a
ymailto="mailto:Qgis-developer@lists.osgeo.org" href="/mc/compose?to=Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br><a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br></div></blockquote></td></tr></table>