How to get antialiased lines?

Stephen Woodbridge woodbri at SWOODBRIDGE.COM
Tue Apr 11 18:09:33 PDT 2006


Abe,

Try:

CLASS
   STYLE
     COLOR 153 179 204
     WIDTH 2
     ANTIALIAS TRUE
   END
END

-Steve W


Abe Gillespie wrote:
> I just can't get this to work.  Can someone give me a sample MapFile config?
> 
> Here's what I have:
> ...
>   OUTPUTFORMAT
>     NAME "png"
>     DRIVER gd/png
>     MIMETYPE image/png
>     IMAGEMODE rgba
>     EXTENSION png
>     TRANSPARENT on
>   END
> ...
>   LAYER
>     NAME "rivers"
>     DATA "rivers"
>     STATUS on
>     TYPE line
>     CLASS
>       COLOR 153 179 204
>       STYLE
>         SYMBOL "rounded-line"
>         ANTIALIAS true
>       END
>     END
>   END
> ...
> SYMBOL
>   NAME "rounded-line"
>   TYPE cartoline
>   LINECAP round
>   ANTIALIAS true
> END
> 
> MapServer info:
> MapServer version 4.8.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
> OUTPUT=PDF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE
> SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=GEOS INPUT=EPPL7
> INPUT=GDAL INPUT=SHAPEFILE
> 
> Thanks for any help.
> -Abe
> 



More information about the MapServer-users mailing list