<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2802" name=GENERATOR></HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Tahoma">
<DIV>Paul--</DIV>
<DIV> </DIV>
<DIV>My apologies if this shows up twice, I sent it out yesterday but it appears to have gotten stuck in the network wires somewhere.</DIV>
<DIV> </DIV>
<DIV>Anyway, I believe you need to:</DIV>
<DIV> </DIV>
<DIV>1) use a 24-bit output image type (IMAGEMODE RGB (or RGBA))</DIV>
<DIV>2) set TRANSPARENCY ALPHA in the layer using antialiased lines</DIV>
<DIV>3) set ANTIALIAS TRUE in the STYLE element of the CLASS with antialiased lines</DIV>
<DIV> </DIV>
<DIV>The following mapfile snippets enable antialiased county borders:</DIV>
<DIV> </DIV>
<DIV>...</DIV>
<DIV>IMAGETYPE png24</DIV>
<DIV>...</DIV>
<DIV>OUTPUTFORMAT<BR>  NAME png24<BR>  DRIVER "GD/PNG"<BR>  MIMETYPE "image/png"<BR>  IMAGEMODE RGB<BR>  EXTENSION "png"<BR>END<BR>...</DIV>
<DIV>LAYER<BR>  NAME counties<BR>  TYPE line<BR>  STATUS default<BR>  DATA "/r01/data/drs/data/gen/state/mn/bdry_counln2"<BR>  TRANSPARENCY alpha<BR>  SYMBOLSCALE 5000000<BR>  CLASS<BR>    STYLE<BR>       WIDTH 3<BR>       COLOR 1 1 1<BR>       ANTIALIAS true<BR>    END<BR>  END<BR>END<BR>...</DIV>
<DIV> </DIV>
<DIV>Note that the bdry_counln2 shapefile referenced in the counties layer is a line shapefile.  If I drop a polygon shapefile into the DATA element, and leave TYPE as line, the results are more or less the same.  Alternatively, I can use a polygon shapefile, set TYPE to POLYGON, and use OUTLINECOLOR in place of COLOR in the STYLE element.  In any case, I'm not sure that the POLYLINE type is supported any longer.</DIV>
<DIV> </DIV>
<DIV>Finally, note that you can tweak the combination of STYLE->WIDTH and SYMBOLSCALE to modify line widths in your output images.</DIV>
<DIV> </DIV>
<DIV>HTH,</DIV>
<DIV> </DIV>
<DIV>--Ken</DIV>
<DIV><BR><BR>>>> Paul Dugas <paul@DUGAS.CC> 4/19/2006 10:59 AM >>><BR></DIV>
<DIV style="COLOR: #000000">I cannot seem to get MapServer-4.8.3 to draw antialiases lines.  It is<BR>working for polygons, but not for polylines.  I got this working a long<BR>time ago for another project but can't seem to this time.  What I'm<BR>really trying to accomplish is a smoothed two-tone line.  I've tried<BR>using ELLIPSE and CARTOLINE symbols with no success.  <BR><BR>Would someone be willing to share a small working example I can start<BR>from?<BR><BR>Thanks in advance,<BR><BR>Paul<BR>-- <BR>Paul Dugas, Computer Engineer                Dugas Enterprises, LLC<BR>paul@dugas.cc        phone: 404-932-1355     522 Black Canyon Park<BR><A href="http://dugas.cc       ">http://dugas.cc       </A> fax: 866-751-6494     Canton, GA 30114 USA<BR>--<BR>On site at GDOT's W.Annex, 404-463-2860 x199<BR>--<BR>This e-mail and any attachments are confidential.  If you receive<BR>this message in error or are not the intended recipient, you should<BR>not retain, distribute, disclose or use any of this information and<BR>you should destroy the e-mail and any attachments or copies.<BR><BR></DIV></BODY></HTML>