<div>Use the predefined one:</div><div><br></div>$map->selectOutputFormat('AGGPNG24');<br><br><div class="gmail_quote">On Tue, Feb 15, 2011 at 1:37 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 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>
<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>