<div>Hi, Jacob,</div>
<div> </div>
<div>you mean like this:</div>
<div> </div>
<div>*****output format:</div>
<div> </div>
<div>OUTPUTFORMAT<br> NAME "PNG24"<br> MIMETYPE "image/PNG"<br> DRIVER "GD/PNG"<br> EXTENSION "PNG"<br> IMAGEMODE RGBA<br> #TRANSPARENT ON<br> #TRANSPARENCY ALPHA
<br> END </div>
<div> </div>
<div>******layer definition:</div>
<div>LAYER<br> NAME "railway"<br> STATUS DEFAULT<br> TYPE LINE<br> CONNECTIONTYPE OGR<br> CONNECTION "CA_NAV_RAILRDS.TAB"<br> MAXSCALE 8000<br> SYMBOLSCALE 4000<br> TRANSPARENCY ALPHA
<br> PROJECTION<br> "init=epsg:4326" <br> END<br> CLASS<br> NAME "railway"<br> STYLE<br> SYMBOL 'point'<br> COLOR 0 0 0<br> SIZE 5<br> MINSIZE 1<br> MAXSIZE 5
<br> ANTIALIAS TRUE<br> END<br> STYLE<br> SYMBOL "dashedline"<br> COLOR 255 255 255<br> SIZE 3<br> MINSIZE 0<br> MAXSIZE 3<br> ANTIALIAS TRUE<br> END
<br> END</div>
<div> </div>
<div>**</div>
<div> </div>
<div>if all the definition is right, this function does not really make the output image nicer. and I've noticed that ANTIALIAS TRUE/FALSE is only useful for truetype font, but not for line features, which means only for truetype font symbols. or Did I do anything wrong?
<br><br> </div>
<div><span class="gmail_quote">On 5/16/06, <b class="gmail_sendername">Delfos, Jacob</b> <<a href="mailto:Jacob.Delfos@maunsell.com">Jacob.Delfos@maunsell.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Zhonghai,<br><br>PNG is 8bit, PNG24 is 24bit colour, with an 8bit transparency. So for<br>the ALPHA option, I think you need PNG24. Try this definition:
<br><br>OUTPUTFORMAT<br> NAME PNG24<br> DRIVER "GD/PNG"<br> MIMETYPE "image/png"<br> EXTENSION PNG<br> IMAGEMODE RGBA<br>END<br><br>Then put:<br><br>TRANSPARENCY ALPHA<br><br>in your layer definition (not in OUTPUTFORMAT).
<br><br>regards,<br><br>Jacob<br><br><br><br>________________________________<br><br> From: UMN MapServer Users List<br>[mailto:<a href="mailto:MAPSERVER-USERS@LISTS.UMN.EDU">MAPSERVER-USERS@LISTS.UMN.EDU</a>] On Behalf Of Zhonghai Wang
<br> Sent: 16 May 2006 16:14<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><br> Hi,<br><br> I am interested in this question, and I've tried like this:
<br><br> *****<br> OUTPUTFORMAT<br> NAME "PNG"<br> MIMETYPE "image/PNG"<br> DRIVER "GD/PNG"<br> EXTENSION "PNG"<br> IMAGEMODE RGBA
<br> TRANSPARENCY ALPHA<br> END<br> *****<br> I've noticed that there is no PNG24 output image format in the<br>mapfile reference document, and therefore I've used PNG.<br><br> but, I get the followig error message:
<br><br> loadOutputFormat(): Unknown identifier. Parsing error near<br>(TRANSPARENCY):(line 114)<br><br> which means I caon only use TRANSPARENT as the the identifier as<br>listed in the mapfile reference document, and this parameter can only be
<br>truned on or off.<br><br> any further ideas, Steve?<br><br> 1000 thanks.<br><br> zhonghai<br><br><br> On 5/16/06, ramesh karra <<a href="mailto:karrarm@yahoo.com">karrarm@yahoo.com</a>> wrote:
<br><br> Hi,<br><br> I have added 'ANTIALIAS TRUE' to all my STYLE objects<br> but I do not see any difference in the map that's<br> displayed. I was hoping to see smooth lines but there
<br> was no difference in the way lines(representing roads)<br> are drawn with or without anti-aliasing. Is this 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<br>around<br> <a href="http://mail.yahoo.com">http://mail.yahoo.com</a><br><br><br><br></blockquote>
</div><br>