[Qgis-developer] Scripting QGIS from the outside using Python
Martin Dobias
wonder.sk at gmail.com
Sun Mar 18 14:51:29 EDT 2012
On Thu, Mar 15, 2012 at 2:29 PM, Nathan Woodrow <madmanwoo at gmail.com> wrote:
> Is it possible to:
>
> Load QGIS from Python (well I know how to do this using
> QgsApplicaiton.Init())
> Open the project file
> Zoom to a location
> Print the first composer to pdf
> OR render out the map canvas to a image.
Hi Nathan
yes that's all possible from an external python script with PyQGIS,
without actually starting GUI.
> From what I can see the only way is to create a new composer item and pass
> it the composer node from the xml.
No need to play with XML, everything can be done using API, there is
an example in the cookbook:
http://qgis.org/pyqgis-cookbook/composer.html
Martin
More information about the Qgis-developer
mailing list