<div>Use the predefined one:</div><div><br></div>$map-&gt;selectOutputFormat(&#39;AGGPNG24&#39;);<br><br><div class="gmail_quote">On Tue, Feb 15, 2011 at 1:37 PM, Michael Schulz <span dir="ltr">&lt;<a href="mailto:mandschulz@googlemail.com">mandschulz@googlemail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi mapservers,<br>
<br>
I have a question regarding the AGG rendering when creating a map<br>
completly from php-mapscript. In the script I (think I) am setting all<br>
the required parameters for the map to be rendered with AGG using<br>
24bit:<br>
<br>
$oMap=ms_newMapObjFromString(&quot;MAP END&quot;);<br>
...<br>
<br>
$oMap-&gt;outputformat-&gt;set(&#39;name&#39;,&#39;png&#39;);<br>
$oMap-&gt;outputformat-&gt;set(&#39;driver&#39;,&#39;AGG/PNG&#39;);<br>
$oMap-&gt;outputformat-&gt;set(&#39;mimetype&#39;,&#39;image/png&#39;);<br>
$oMap-&gt;outputformat-&gt;set(&#39;imagemode&#39;,MS_IMAGEMODE_RGBA);<br>
$oMap-&gt;outputformat-&gt;set(&#39;extension&#39;,&#39;png&#39;);<br>
$oMap-&gt;outputformat-&gt;set(&#39;transparent&#39;,MS_TRUE);<br>
<br>
I&#39;ve experienced for some time with the following directive, trying to<br>
actually invoke the correct outputformat<br>
$oMap-&gt;selectoutputformat(&quot;png&quot;);<br>
<br>
But to no avail. The maps that derive from this script clearly use the<br>
GD driver. When I saved the generated map-file to the filesystem I<br>
found the following line in the map section:<br>
<br>
IMAGETYPE gif<br>
<br>
I am using MapServer, Mapscript 5.6.6., PHP 5.3.3 on OpenSuse 11.3<br>
<br>
Maybe someone could share some mapscript code or has some hints how to<br>
actually return AGG rendered maps.<br>
<br>
Thanks, Michael<br>
<font color="#888888"><br>
--<br>
-----------------------------------------------------------<br>
Michael Schulz<br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</font></blockquote></div><br>