How does anti-alias work in MapServer?

Jackey Cheung cheung.jackey at GMAIL.COM
Mon Apr 9 01:51:31 PDT 2007


Play slideshow <http://g.msn.com/5meen_us/171?path=/photomail/{9c30dcc8-9b32-441b-b8a3-70fd053f36bf}&image=1A980D3F180F86D!131&imagehi=1A980D3F180F86D!129&CID=119768512880244845>| Download the highest quality version of a picture by clicking the + above it Greetings!
 
I've created a map file as follow:
 
 OUTPUTFORMAT
   NAME   PNG
   DRIVER  "GD/PNG"
   MIMETYPE "image/png"
   IMAGEMODE RGBA
   EXTENSION "png"
 END
.....
.....
 LAYER
  NAME    "cline"
  STATUS   DEFAULT
  TYPE    LINE
 
  FEATURE
   POINTS 1 1 50 50 1 50 10 15 0 10 1 1 END
  END
 
  CLASS
   STYLE
    SYMBOL  "line"
    SIZE   10
    COLOR   160 100 0
   END
 
   STYLE
    SYMBOL  "line"
    SIZE   7
    COLOR   255 255 0
   END
  END
 END

Where the "line" Symbol is defined as:
SYMBOL
  NAME   "line"
  TYPE   CARTOLINE
 LINEJOIN ROUND
 LINECAP  ROUND
  ANTIALIAS TRUE
END

And got the the result (Normal Request below).
 
Then I've tried WMS with SLD, where the SLD is:
 <NamedLayer>
 <Name>cline</Name>
 <UserStyle>
   <FeatureTypeStyle>
    <Rule>
     <LineSymbolizer>
      <Stroke>
       <CssParameter name="stroke">#666666</CssParameter>
       <CssParameter name="stroke-width">7</CssParameter>
      </Stroke>
     </LineSymbolizer>
     <LineSymbolizer>
      <Stroke>
       <CssParameter name="stroke">#FFFFFF</CssParameter>
       <CssParameter name="stroke-width">4</CssParameter>
      </Stroke>
     </LineSymbolizer>
    </Rule>
   </FeatureTypeStyle>
   </UserStyle>
 </NamedLayer>

And got the result (WMS Request below).
 +<http://by1.storage.msn.com/x1p1hQK6GEYYMQ5s4ZSxnScbR3i51S3LrP8I9_4p-ucIlFLWIC6gbfWpRiDeHhLEr6kV6QAHjlSmbTFqBuzZKgfN9676pTc-HUutTXO6_o5i0FDjYxHTD5p78XYK9g3LUN4OhasPRei8kS3oGMRhoudxO9RJh4FaQnC?download>
      <http://g.msn.com/5meen_us/171?path=/photomail/{9c30dcc8-9b32-441b-b8a3-70fd053f36bf}&image=1A980D3F180F86D!131&imagehi=1A980D3F180F86D!129&CID=119768512880244845> 
      Normal Request 
      +<http://by1.storage.msn.com/x1p1hQK6GEYYMQ5s4ZSxnScbR3i51S3LrP8I9_4p-ucIlH009hPBD_Bm5J0EY055iL-qEy2tUpk2q0UF_v3VHtN_nNhORK7wZJQL6jgPmh7RuUtf2I599s0kYGw5kbfYBLZkBGxU9CfpofXY_GgGFZP7y5FTEeb8P_J?download>
      <http://g.msn.com/5meen_us/171?path=/photomail/{9c30dcc8-9b32-441b-b8a3-70fd053f36bf}&image=1A980D3F180F86D!133&imagehi=1A980D3F180F86D!129&CID=119768512880244845> 
      WMS Request 
Both of these two image don¡¯t seem to have anti-alias, why?
 
BTW, the LineCap of WMS version seems better, is it true?Online pictures are available for 30 days. Get Windows Live Mail desktop to create your own photo e-mails. <http://g.msn.com/5meen_us/175>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20070409/01962efb/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 50.jpg
Type: image/jpeg
Size: 7145 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20070409/01962efb/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 51.jpg
Type: image/jpeg
Size: 5555 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20070409/01962efb/attachment-0001.jpg>


More information about the MapServer-users mailing list