Can you post your .php file ?<br><br><div class="gmail_quote">On Tue, Feb 15, 2011 at 3:56 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,<br>
<br>
yeah, unfortunately I tried that one already, but it didn&#39;t work<br>
either. Although &quot;IMAGETYPE aggpng24&quot; now shows up in the saved<br>
mapfile, but the rendered output is still definitely GD and not AGG.<br>
<br>
I found this in trac <a href="http://trac.osgeo.org/mapserver/ticket/2813" target="_blank">http://trac.osgeo.org/mapserver/ticket/2813</a>, it&#39;s<br>
a bit old but that seems exactly my problem, only the solution doesn&#39;t<br>
workforme.<br>
<br>
Thx, Michael<br>
<br>
2011/2/15 Pavel Iacovlev &lt;<a href="mailto:iacovlev.pavel@gmail.com">iacovlev.pavel@gmail.com</a>&gt;:<br>
<div><div></div><div class="h5">&gt; Use the predefined one:<br>
&gt; $map-&gt;selectOutputFormat(&#39;AGGPNG24&#39;);<br>
&gt;<br>
&gt; On Tue, Feb 15, 2011 at 1:37 PM, Michael Schulz &lt;<a href="mailto:mandschulz@googlemail.com">mandschulz@googlemail.com</a>&gt;<br>
&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hi mapservers,<br>
&gt;&gt;<br>
&gt;&gt; I have a question regarding the AGG rendering when creating a map<br>
&gt;&gt; completly from php-mapscript. In the script I (think I) am setting all<br>
&gt;&gt; the required parameters for the map to be rendered with AGG using<br>
&gt;&gt; 24bit:<br>
&gt;&gt;<br>
&gt;&gt; $oMap=ms_newMapObjFromString(&quot;MAP END&quot;);<br>
&gt;&gt; ...<br>
&gt;&gt;<br>
&gt;&gt; $oMap-&gt;outputformat-&gt;set(&#39;name&#39;,&#39;png&#39;);<br>
&gt;&gt; $oMap-&gt;outputformat-&gt;set(&#39;driver&#39;,&#39;AGG/PNG&#39;);<br>
&gt;&gt; $oMap-&gt;outputformat-&gt;set(&#39;mimetype&#39;,&#39;image/png&#39;);<br>
&gt;&gt; $oMap-&gt;outputformat-&gt;set(&#39;imagemode&#39;,MS_IMAGEMODE_RGBA);<br>
&gt;&gt; $oMap-&gt;outputformat-&gt;set(&#39;extension&#39;,&#39;png&#39;);<br>
&gt;&gt; $oMap-&gt;outputformat-&gt;set(&#39;transparent&#39;,MS_TRUE);<br>
&gt;&gt;<br>
&gt;&gt; I&#39;ve experienced for some time with the following directive, trying to<br>
&gt;&gt; actually invoke the correct outputformat<br>
&gt;&gt; $oMap-&gt;selectoutputformat(&quot;png&quot;);<br>
&gt;&gt;<br>
&gt;&gt; But to no avail. The maps that derive from this script clearly use the<br>
&gt;&gt; GD driver. When I saved the generated map-file to the filesystem I<br>
&gt;&gt; found the following line in the map section:<br>
&gt;&gt;<br>
&gt;&gt; IMAGETYPE gif<br>
&gt;&gt;<br>
&gt;&gt; I am using MapServer, Mapscript 5.6.6., PHP 5.3.3 on OpenSuse 11.3<br>
&gt;&gt;<br>
&gt;&gt; Maybe someone could share some mapscript code or has some hints how to<br>
&gt;&gt; actually return AGG rendered maps.<br>
&gt;&gt;<br>
&gt;&gt; Thanks, Michael<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; -----------------------------------------------------------<br>
&gt;&gt; Michael Schulz<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; mapserver-users mailing list<br>
&gt;&gt; <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
&gt;&gt; <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
&gt;<br>
&gt;<br>
<br>
<br>
<br>
</div></div><font color="#888888">--<br>
-----------------------------------------------------------<br>
Michael Schulz<br>
<br>
Christoph-Mang-Str. 5<br>
D-79100 Freiburg<br>
</font><div><div></div><div class="h5">_______________________________________________<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>
</div></div></blockquote></div><br>