<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="MSHTML 6.00.2900.3059" name=GENERATOR></HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Tahoma">
<DIV>Hello All,<BR><BR>I've been using MapServer and MapScript both for work and home projects for a couple of years now, and am delighted with the quality of maps produced by MapServer 5 using AGG.<BR></DIV>
<DIV>However, I have not been able to work out how to specify a map to be rendered using the AGG driver from within PHP MapScript.<BR>In my particular case I am creating a Map Object in PHP without a Map file.<BR>Everything works fine but the following two lines seem not to trigger AGG rendering (I have never tried setting output format options from within<BR>MapScript before and was unable to find any examples).<BR>.....</DIV>
<DIV>$map->outputformat->setOption("name", "AGG");<BR>$map->outputformat->setOption("imagemode", MS_IMAGEMODE_RGB);<BR>$map->outputformat->setOption("driver", "AGG/PNG");<BR>.....<BR></DIV>
<DIV>Can somebody set me straight and point out where I am going wrong?<BR></DIV>
<DIV>Thanks in advance,</DIV>
<DIV>Bryn</DIV><BR>
<p>
<font size="2" face="SansSerif">
----------------------------------------------------- </font>
</p>
<p>
<font size="2" face="SansSerif">This transmission is intended solely for
the person or </font>
</p>
<p>
<font size="2" face="SansSerif">organisation to whom it is addressed. </font>
</p>
<p>
<font size="2" face="SansSerif">It is confidential and may contain
legally privileged </font>
</p>
<p>
<font size="2" face="SansSerif">information. If you have received this
transmission in </font>
</p>
<p>
<font size="2" face="SansSerif">error,you may not use, copy or
distribute it. </font>
</p>
<p>
<font size="2" face="SansSerif">Please advise us by return e-mail or by
phoning 61 3 62338203 </font>
</p>
<p>
<font size="2" face="SansSerif">and immediately delete the transmission
in its entirety. </font>
</p>
<p>
<font size="2" face="SansSerif">We will meet your reasonable expenses of
notifying us. </font>
</p>
<p>
<font size="2" face="SansSerif">Despite our use of anti-virus software,
Forestry Tasmania </font>
</p>
<p>
<font size="2" face="SansSerif">cannot guarantee that this transmission
is virus-free. </font>
</p>
<p>
<font size="2" face="SansSerif">
----------------------------------------------------- </font>
</p>
</BODY></HTML>