Anti Aliasing

Eijnden, B. van den (Bart) b.vdeijnden at AGI.RWS.MINVENW.NL
Tue May 16 05:50:57 PDT 2006


Hi Perry,

I don't think 2 will work, since transparency cannot be defined at the STYLE
level. See also:

http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1155

Best regards,
Bart

-----Oorspronkelijk bericht-----
Van: UMN MapServer Users List
[mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Pericles S. Nacionales
Verzonden: dinsdag 16 mei 2006 14:53
Aan: MAPSERVER-USERS at LISTS.UMN.EDU
Onderwerp: Re: [UMN_MAPSERVER-USERS] Anti Aliasing


Two things you can try...
1. define two layers--one for polygon without outline color with 
transparency set to whatever number, and the other layer defined as line 
and with transparency set to alpha.
2. Create two styles within the layer--1 for the polygon fill with 
transparency set to whatever value you want, 1 for the outlinecolor with 
transparency alpha.

I haven't tried the second one so I don't know if it works. ;)  Make 
sure the line layer (or the outline style) is drawn on top.  If you 
don't want the lines, then I don't know the answer.

-Perry

Vincent Schut wrote:
> Steve Lime 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...
> 
> To chime in:
> But what if I want to have antialiasing *and* semi-transparency? How
> would I define e.g. a opacity of 60 when I already have 'transparency
> alpha' in my layer?
> 
> Vincent.
> 
>> 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 
>>
> 
> .
> 



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.
************************************************************************

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060516/4adee9d6/attachment.htm>


More information about the MapServer-users mailing list