<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>&lt;wonder.sk@gmail.com&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Martin Dobias &lt;wonder.sk@gmail.com&gt;<br>Subject: Re: [Qgis-developer] Scripting QGIS from the outside using Python<br>To: "Nathan Woodrow" &lt;madmanwoo@gmail.com&gt;<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 &lt;<a ymailto="mailto:madmanwoo@gmail.com"
 href="/mc/compose?to=madmanwoo@gmail.com">madmanwoo@gmail.com</a>&gt; wrote:<br>&gt; Is it possible to:<br>&gt;<br>&gt; Load QGIS from Python (well I know how to do this using<br>&gt; QgsApplicaiton.Init())<br>&gt; Open the project file<br>&gt; Zoom to a location<br>&gt; Print the first composer to pdf<br>&gt; 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>&gt; From what I can see the only way is to create a new composer item and pass<br>&gt; 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>