<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2658.24">
<TITLE>RE: [UMN_MAPSERVER-USERS] Anti Aliasing</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>Hi Perry,</FONT>
</P>
<P><FONT SIZE=2>I don't think 2 will work, since transparency cannot be defined at the STYLE level. See also:</FONT>
</P>
<P><FONT SIZE=2><A HREF="http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1155" TARGET="_blank">http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1155</A></FONT>
</P>
<P><FONT SIZE=2>Best regards,</FONT>
<BR><FONT SIZE=2>Bart</FONT>
</P>
<P><FONT SIZE=2>-----Oorspronkelijk bericht-----</FONT>
<BR><FONT SIZE=2>Van: UMN MapServer Users List</FONT>
<BR><FONT SIZE=2>[<A HREF="mailto:MAPSERVER-USERS@LISTS.UMN.EDU">mailto:MAPSERVER-USERS@LISTS.UMN.EDU</A>]Namens Pericles S. Nacionales</FONT>
<BR><FONT SIZE=2>Verzonden: dinsdag 16 mei 2006 14:53</FONT>
<BR><FONT SIZE=2>Aan: MAPSERVER-USERS@LISTS.UMN.EDU</FONT>
<BR><FONT SIZE=2>Onderwerp: Re: [UMN_MAPSERVER-USERS] Anti Aliasing</FONT>
</P>
<BR>
<P><FONT SIZE=2>Two things you can try...</FONT>
<BR><FONT SIZE=2>1. define two layers--one for polygon without outline color with </FONT>
<BR><FONT SIZE=2>transparency set to whatever number, and the other layer defined as line </FONT>
<BR><FONT SIZE=2>and with transparency set to alpha.</FONT>
<BR><FONT SIZE=2>2. Create two styles within the layer--1 for the polygon fill with </FONT>
<BR><FONT SIZE=2>transparency set to whatever value you want, 1 for the outlinecolor with </FONT>
<BR><FONT SIZE=2>transparency alpha.</FONT>
</P>
<P><FONT SIZE=2>I haven't tried the second one so I don't know if it works. ;) Make </FONT>
<BR><FONT SIZE=2>sure the line layer (or the outline style) is drawn on top. If you </FONT>
<BR><FONT SIZE=2>don't want the lines, then I don't know the answer.</FONT>
</P>
<P><FONT SIZE=2>-Perry</FONT>
</P>
<P><FONT SIZE=2>Vincent Schut wrote:</FONT>
<BR><FONT SIZE=2>> Steve Lime wrote:</FONT>
<BR><FONT SIZE=2>>> You need a couple of other things:</FONT>
<BR><FONT SIZE=2>>></FONT>
<BR><FONT SIZE=2>>> - a 24-bit output format (e.g. IMAGETYPE PNG24)</FONT>
<BR><FONT SIZE=2>>> - alpha blending turned on for the layer (e.g. TRANSPARENCY ALPHA)</FONT>
<BR><FONT SIZE=2>>></FONT>
<BR><FONT SIZE=2>>> That should get it working...</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> To chime in:</FONT>
<BR><FONT SIZE=2>> But what if I want to have antialiasing *and* semi-transparency? How</FONT>
<BR><FONT SIZE=2>> would I define e.g. a opacity of 60 when I already have 'transparency</FONT>
<BR><FONT SIZE=2>> alpha' in my layer?</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> Vincent.</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>>> Steve</FONT>
<BR><FONT SIZE=2>>></FONT>
<BR><FONT SIZE=2>>> Stephen Lime</FONT>
<BR><FONT SIZE=2>>> Data & Applications Manager</FONT>
<BR><FONT SIZE=2>>></FONT>
<BR><FONT SIZE=2>>> Minnesota DNR</FONT>
<BR><FONT SIZE=2>>> 500 Lafayette Road</FONT>
<BR><FONT SIZE=2>>> St. Paul, MN 55155</FONT>
<BR><FONT SIZE=2>>> 651-259-5473</FONT>
<BR><FONT SIZE=2>>>>>> ramesh karra <karrarm@YAHOO.COM> 05/15/06 6:49 PM >>></FONT>
<BR><FONT SIZE=2>>> Hi,</FONT>
<BR><FONT SIZE=2>>></FONT>
<BR><FONT SIZE=2>>> I have added 'ANTIALIAS TRUE' to all my STYLE objects</FONT>
<BR><FONT SIZE=2>>> but I do not see any difference in the map that's</FONT>
<BR><FONT SIZE=2>>> displayed. I was hoping to see smooth lines but there</FONT>
<BR><FONT SIZE=2>>> was no difference in the way lines(representing roads)</FONT>
<BR><FONT SIZE=2>>> are drawn with or without anti-aliasing. Is this the</FONT>
<BR><FONT SIZE=2>>> expected behavior? How can I get smooth lines?</FONT>
<BR><FONT SIZE=2>>></FONT>
<BR><FONT SIZE=2>>> My layer is defined as follows:</FONT>
<BR><FONT SIZE=2>>></FONT>
<BR><FONT SIZE=2>>> LAYER </FONT>
<BR><FONT SIZE=2>>> NAME roads</FONT>
<BR><FONT SIZE=2>>> DATA droad1</FONT>
<BR><FONT SIZE=2>>> STATUS OFF</FONT>
<BR><FONT SIZE=2>>> TYPE LINE</FONT>
<BR><FONT SIZE=2>>></FONT>
<BR><FONT SIZE=2>>> PROJECTION</FONT>
<BR><FONT SIZE=2>>> "init=epsg:4326"</FONT>
<BR><FONT SIZE=2>>> END </FONT>
<BR><FONT SIZE=2>>> </FONT>
<BR><FONT SIZE=2>>> CLASS</FONT>
<BR><FONT SIZE=2>>> NAME "Roads"</FONT>
<BR><FONT SIZE=2>>> MAXSCALE 80000</FONT>
<BR><FONT SIZE=2>>> MINSCALE 20000</FONT>
<BR><FONT SIZE=2>>> STYLE</FONT>
<BR><FONT SIZE=2>>> ANTIALIAS TRUE</FONT>
<BR><FONT SIZE=2>>> COLOR 150 150 150</FONT>
<BR><FONT SIZE=2>>> WIDTH 3</FONT>
<BR><FONT SIZE=2>>> END </FONT>
<BR><FONT SIZE=2>>> STYLE</FONT>
<BR><FONT SIZE=2>>> ANTIALIAS TRUE</FONT>
<BR><FONT SIZE=2>>> COLOR 255 255 255</FONT>
<BR><FONT SIZE=2>>> WIDTH 1</FONT>
<BR><FONT SIZE=2>>> END </FONT>
<BR><FONT SIZE=2>>> END</FONT>
<BR><FONT SIZE=2>>> END</FONT>
<BR><FONT SIZE=2>>></FONT>
<BR><FONT SIZE=2>>> __________________________________________________</FONT>
<BR><FONT SIZE=2>>> Do You Yahoo!?</FONT>
<BR><FONT SIZE=2>>> Tired of spam? Yahoo! Mail has the best spam protection around </FONT>
<BR><FONT SIZE=2>>> <A HREF="http://mail.yahoo.com" TARGET="_blank">http://mail.yahoo.com</A> </FONT>
<BR><FONT SIZE=2>>></FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> .</FONT>
<BR><FONT SIZE=2>> </FONT>
</P>
<BR>
Disclaimer
************************************************************************
Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is
uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis
hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te
informeren. Wij adviseren u om bij twijfel over de juistheid of de
volledigheid van de mail contact met afzender op te nemen.
This message shall not constitute any rights or obligations.
This message is intended solely for the addressee.
If you have received this message in error, please delete it and
notify the sender immediately. When in doubt whether this message
is correct or complete, please contact the sender.
************************************************************************
<BR>
</BODY>
</HTML>