<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi All,<div><br></div><div>So, as of r7923 MapServer can now render some super thin lines using the subpixel rendering of AGG. The change allows you to enter values for the WIDTH parameter as doubles/fractions which can give the result I've been looking for.</div><div><br></div><div>I think is really cool, and if anyone is interested in the different results you can check out the image comparisons I've posted on this ticket:</div><div><br></div><div><a href="http://trac.osgeo.org/mapserver/ticket/2745#comment">http://trac.osgeo.org/mapserver/ticket/2745#comment</a>:6</div><div><br></div><div>Thanks dmorrissette, sdlime, and tbonfort for making this happen!</div><div><br></div><div>Dane</div><div><br></div><div><br></div><div><br><div><div>On Sep 4, 2008, at 7:10 PM, Dane Springmeyer wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div 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 5.2.0</div><div><br></div><div><div>I've tried to add two style blocks like:</div><div><div><br></div><div> LAYER </div><div> NAME world_opacity</div><div> DATA world_borders.shp</div><div> STATUS ON</div><div> TYPE POLYGON</div><div> CLASS</div><div> NAME "World"</div><div> STYLE</div><div> COLOR 242 239 249</div><div> OUTLINECOLOR -1 -1 -1</div><div> END</div><div> STYLE</div><div> COLOR -1 -1 -1</div><div> OUTLINECOLOR 127 127 127</div><div> OPACITY 50</div><div> WIDTH 1</div><div> END</div><div> END # class</div><div> END # layer</div><div><br></div><div>to create this full mapfile: <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 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> OUTPUTFORMAT </div><div> NAME 'AGG' </div><div> DRIVER AGG/PNG </div><div> IMAGEMODE RGB</div><div> MIMETYPE "image/png"</div><div> END</div><div><br></div><div>I also tried with:</div><div><br></div><div><div> OUTPUTFORMAT </div><div> NAME 'AGGA' </div><div> DRIVER AGG/PNG </div><div> IMAGEMODE RGBA</div><div> MIMETYPE "image/png"</div><div> END</div><div><br></div><div>but I get an error when I add the 'AGGA' (based on reading <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 <<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 # 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></div>_______________________________________________<br>mapserver-users mailing list<br><a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>http://lists.osgeo.org/mailman/listinfo/mapserver-users<br></blockquote></div><br></div></body></html>