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