<br><div class="gmail_quote">On Thu, Apr 5, 2012 at 9:58 PM, Marco Hugentobler <span dir="ltr">&lt;<a href="mailto:marco.hugentobler@sourcepole.ch">marco.hugentobler@sourcepole.ch</a>&gt;</span> wrote: <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div><br>Hi<div><br></div><div>Yes, that was the reason. It needs conversion code for the map.</div><div><br></div><div>Nathan: are you using that function in a plugin?</div><div><br></div></div></blockquote><div><br></div>

<div>Yes I was hoping to use it in a script outside QGIS, in a custom Python app using QGIS as a mapping platform.</div><div><br></div><div>The plan is to:</div><div><br></div><div><ol><li>Load QGIS via QgsApplication</li>

<li>Open composition</li><li>Print composition to .png</li><li>Use .png in other app</li></ol><div>The other app is a service that run on the computer in the background and generates maps for search requests that come in, so I can&#39;t really use a QGIS plugn because it has to be automated and run in the background.</div>

<div><br></div><div>- Nathan</div><div><br></div></div></div>