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"><<a href="mailto:mandschulz@googlemail.com">mandschulz@googlemail.com</a>></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't work<br>
either. Although "IMAGETYPE aggpng24" 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's<br>
a bit old but that seems exactly my problem, only the solution doesn't<br>
workforme.<br>
<br>
Thx, Michael<br>
<br>
2011/2/15 Pavel Iacovlev <<a href="mailto:iacovlev.pavel@gmail.com">iacovlev.pavel@gmail.com</a>>:<br>
<div><div></div><div class="h5">> Use the predefined one:<br>
> $map->selectOutputFormat('AGGPNG24');<br>
><br>
> On Tue, Feb 15, 2011 at 1:37 PM, Michael Schulz <<a href="mailto:mandschulz@googlemail.com">mandschulz@googlemail.com</a>><br>
> wrote:<br>
>><br>
>> 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("MAP END");<br>
>> ...<br>
>><br>
>> $oMap->outputformat->set('name','png');<br>
>> $oMap->outputformat->set('driver','AGG/PNG');<br>
>> $oMap->outputformat->set('mimetype','image/png');<br>
>> $oMap->outputformat->set('imagemode',MS_IMAGEMODE_RGBA);<br>
>> $oMap->outputformat->set('extension','png');<br>
>> $oMap->outputformat->set('transparent',MS_TRUE);<br>
>><br>
>> I've experienced for some time with the following directive, trying to<br>
>> actually invoke the correct outputformat<br>
>> $oMap->selectoutputformat("png");<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>
>><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>
><br>
><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>