<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Thomas,<div><br></div><div>Thanks for the tip, but I think I don't quite understand the right syntax.</div><div><br></div><div>First of all, I'm running the mac binary from kyngchaos, version&nbsp;5.2.0</div><div><br></div><div><div>I've tried to add two style blocks like:</div><div><div><br></div><div>&nbsp;&nbsp;LAYER&nbsp;</div><div>&nbsp;&nbsp; &nbsp;NAME &nbsp; &nbsp; &nbsp; &nbsp; world_opacity</div><div>&nbsp;&nbsp; &nbsp;DATA &nbsp; &nbsp; &nbsp; &nbsp; world_borders.shp</div><div>&nbsp;&nbsp; &nbsp;STATUS &nbsp; &nbsp; &nbsp;ON</div><div>&nbsp;&nbsp; &nbsp;TYPE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;POLYGON</div><div>&nbsp;&nbsp; &nbsp;CLASS</div><div>&nbsp;&nbsp; &nbsp; &nbsp;NAME &nbsp; &nbsp; &nbsp; "World"</div><div>&nbsp;&nbsp; &nbsp; &nbsp;STYLE</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;COLOR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 242 239 249</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;OUTLINECOLOR &nbsp; &nbsp;-1 -1 -1</div><div>&nbsp;&nbsp; &nbsp; &nbsp;END</div><div>&nbsp;&nbsp; &nbsp; &nbsp;STYLE</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;COLOR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -1 -1 -1</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;OUTLINECOLOR &nbsp; 127 127 127</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;OPACITY 50</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;WIDTH 1</div><div>&nbsp;&nbsp; &nbsp; &nbsp;END</div><div>&nbsp;&nbsp; &nbsp;END # class</div><div>&nbsp;&nbsp;END # layer</div><div><br></div><div>to create this full mapfile:&nbsp;<a href="http://mapnik-utils.googlecode.com/svn/trunk/tutorials/hello_world/mapserver_comparison/mapfile_config/world.map">http://mapnik-utils.googlecode.com/svn/trunk/tutorials/hello_world/mapserver_comparison/mapfile_config/world.map</a></div><div><br></div><div>But that does not produce a result&nbsp;more akin to WIDTH 0.5, from what I can tell. It simply lightens the color of the outline, and in this case make it 'seem' even thicker. It is as if the opacity is not working as a true alpha opacity.</div><div><br></div><div>Here is the example output with OPACITY 50:</div><div><br></div><div><a href="http://mapnik-utils.googlecode.com/svn/trunk/tutorials/hello_world/mapserver_comparison/mapfile_config/map/hello_world_with_mapserver_mapfile_opacity.png">http://mapnik-utils.googlecode.com/svn/trunk/tutorials/hello_world/mapserver_comparison/mapfile_config/map/hello_world_with_mapserver_mapfile_opacity.png</a></div><div><br></div><div>Is this the expected behavior or have I made an error in my mapfile syntax (highly likely). Perhaps I am not correctly turning off the outline for the first style?</div><div><br></div><div>The issue may also be with my OUTPUTFORMAT, which is not using the RGBA:</div><div><br></div><div><div>&nbsp;&nbsp;OUTPUTFORMAT&nbsp;</div><div>&nbsp;&nbsp; NAME 'AGG'&nbsp;</div><div>&nbsp;&nbsp; DRIVER AGG/PNG&nbsp;</div><div>&nbsp;&nbsp; IMAGEMODE RGB</div><div>&nbsp;&nbsp; MIMETYPE "image/png"</div><div>&nbsp;&nbsp;END</div><div><br></div><div>I also tried with:</div><div><br></div><div><div>&nbsp;&nbsp;OUTPUTFORMAT&nbsp;</div><div>&nbsp;&nbsp; NAME 'AGGA'&nbsp;</div><div>&nbsp;&nbsp; DRIVER AGG/PNG&nbsp;</div><div>&nbsp;&nbsp; IMAGEMODE RGBA</div><div>&nbsp;&nbsp; MIMETYPE "image/png"</div><div>&nbsp;&nbsp;END</div><div><br></div><div>but I get an error when I add the 'AGGA' (based on reading&nbsp;<a href="http://mapserver.gis.umn.edu/docs/howto/agg-rendering-specifics)">http://mapserver.gis.umn.edu/docs/howto/agg-rendering-specifics)</a>:</div></div><div><br></div></div></div></div><div><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: 16px; ">msPostMapParseOutputFormatSetup(): General error message. Unable to select IMAGETYPE `AGG'.</span></div><div><br></div><div><br></div><div>Any thoughts?</div><div><br></div><div>Thanks,</div><div><br></div><div>Dane</div><div><br></div><div><br></div><div><br></div><div><div>On Aug 31, 2008, at 2:50 PM, thomas bonfort wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>hi.<br>yes, you need two style blocks inside your class<br>cheers,<br>thomas<br><br>On Sun, Aug 31, 2008 at 9:43 PM, Dane Springmeyer &lt;<a href="mailto:blake@hailmail.net">blake@hailmail.net</a>> wrote:<br><blockquote type="cite">Hi Thomas,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Thanks for the followup.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">The OPACITY keyword seems to apply to both the polyon fill (COLOR) and the<br></blockquote><blockquote type="cite">outline (OUTLINECOLOR).<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">What is the trick to apply it to only the outline? I tried OUTLINEOPACITY,<br></blockquote><blockquote type="cite">which of course does not exist.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Do I need to pull out a style class for just the outline?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Here is the mapfile I am working from:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><a href="http://mapnik-utils.googlecode.com/svn/trunk/tutorials/hello_world/mapserver_comparison/mapfile_config/world.map">http://mapnik-utils.googlecode.com/svn/trunk/tutorials/hello_world/mapserver_comparison/mapfile_config/world.map</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Thanks,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Dane<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">On Aug 30, 2008, at 12:22 AM, thomas bonfort wrote:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><blockquote type="cite">Sorry for not hopping into the thread earlier, blame holidays :)<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">For the time being, you can achieve similar output with mapserver 5.2,<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">by using the OPACITY keyword at the style level<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">STYLE<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">COLOR r g b<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">OPACITY 50 &nbsp;# essentially the same as WIDTH 0.5<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">WIDTH 1<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">END<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">cheers,<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">thomas<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></div></blockquote></div></body></html>