<div>antialiasing true/off works well, and what you have to do are:</div>
<div> </div>
<div>1. comment your "OUTPUTFORMAT...END"ONJECT, add "IMAGETYPE PNG24"</div>
<div>2. set "TRANSPARENCY ALPHA" in your layer object</div>
<div>3. set "ANTIALIAS TRUE" in style object.</div>
<div> </div>
<div>that's all!</div>
<div> </div>
<div>zhonghai</div>
<div> </div>
<div>17.05.2006<br> </div>
<div><span class="gmail_quote">On 5/17/06, <b class="gmail_sendername">Doyon, Jean-Francois</b> <<a href="mailto:Jean-Francois.Doyon@ccrs.nrcan.gc.ca">Jean-Francois.Doyon@ccrs.nrcan.gc.ca</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Interesting ... My reading of the docs suggests that TRANSPARENCY ALPHA<br>should only respect the alpha channel in pixmap symbols ...
<br><br>Yet apparently rendered line work (which isn't pixmap based) is also<br>"smoothed"? Is that right?<br><br>J.F.<br><br>-----Original Message-----<br>From: UMN MapServer Users List [mailto:<a href="mailto:MAPSERVER-USERS@lists.umn.edu">
MAPSERVER-USERS@lists.umn.edu</a>] On<br>Behalf Of ramesh karra<br>Sent: May 16, 2006 6:07 PM<br>To: <a href="mailto:MAPSERVER-USERS@lists.umn.edu">MAPSERVER-USERS@lists.umn.edu</a><br>Subject: Re: [UMN_MAPSERVER-USERS] Anti Aliasing
<br><br>Thanks steve!<br><br>I have upgraded to 4.8.3 and the roads/lines are smooth... Looks really<br>good.<br><br>Thanks<br>Ramesh<br><br>--- Steve Lime <<a href="mailto:Steve.Lime@DNR.STATE.MN.US">Steve.Lime@DNR.STATE.MN.US
</a>> wrote:<br><br>> You need 4.8 or later to use antialiasing... ;-)<br>><br>> >>> ramesh karra <<a href="mailto:karrarm@yahoo.com">karrarm@yahoo.com</a>> 5/16/2006<br>> 1:35:15 PM >>>
<br>> Thanks steve!<br>><br>> I made the changes you suggested but I started getting script errors.<br>> It looks like the errors are due to 'PNG24'. I am using Mapserver 4.6.<br>> Do I need to use<br>>
4.8 or later to successfully use PNG24?<br>><br>> Thanks<br>> Krishna<br>><br>> --- Steve Lime <<a href="mailto:Steve.Lime@DNR.STATE.MN.US">Steve.Lime@DNR.STATE.MN.US</a>> wrote:<br>><br>> > You need a couple of other things:
<br>> ><br>> > - a 24-bit output format (e.g. IMAGETYPE PNG24)<br>> > - alpha blending turned on for the layer (e.g.<br>> > TRANSPARENCY ALPHA)<br>> ><br>> > That should get it working...
<br>> ><br>> > Steve<br>> ><br>> > Stephen Lime<br>> > Data & Applications Manager<br>> ><br>> > Minnesota DNR<br>> > 500 Lafayette Road<br>> > St. Paul, MN 55155<br>
> > 651-259-5473<br>> > >>> ramesh karra <<a href="mailto:karrarm@YAHOO.COM">karrarm@YAHOO.COM</a>> 05/15/06 6:49<br>> > PM >>><br>> > Hi,<br>> ><br>> > I have added 'ANTIALIAS TRUE' to all my STYLE objects but I do not
<br>> > see any difference in the map that's displayed. I was hoping to see<br>> > smooth lines but there was no difference in the way<br>> > lines(representing<br>> > roads)<br>> > are drawn with or without anti-aliasing. Is this
<br>> the<br>> > expected behavior? How can I get smooth lines?<br>> ><br>> > My layer is defined as follows:<br>> ><br>> > LAYER<br>> > NAME roads<br>> > DATA droad1
<br>> > STATUS OFF<br>> > TYPE LINE<br>> ><br>> > PROJECTION<br>> > "init=epsg:4326"<br>> > END<br>> ><br>> > CLASS<br>> > NAME "Roads"
<br>> > MAXSCALE 80000<br>> > MINSCALE 20000<br>> > STYLE<br>> > ANTIALIAS TRUE<br>> > COLOR 150 150 150<br>> > WIDTH 3<br>> > END
<br>> > STYLE<br>> > ANTIALIAS TRUE<br>> > COLOR 255 255 255<br>> > WIDTH 1<br>> > END<br>> > END<br>> > END<br>> ><br>> > __________________________________________________
<br>> > Do You Yahoo!?<br>> > Tired of spam? Yahoo! Mail has the best spam protection around<br>> > <a href="http://mail.yahoo.com">http://mail.yahoo.com</a><br>> ><br>><br>><br>> __________________________________________________
<br>> Do You Yahoo!?<br>> Tired of spam? Yahoo! Mail has the best spam protection around<br>> <a href="http://mail.yahoo.com">http://mail.yahoo.com</a><br>><br><br><br>__________________________________________________
<br>Do You Yahoo!?<br>Tired of spam? Yahoo! Mail has the best spam protection around<br><a href="http://mail.yahoo.com">http://mail.yahoo.com</a><br></blockquote></div><br>