antialias lines

Bailey Bailey at TEXASSABAL.COM
Thu Sep 13 12:14:43 EDT 2007


I made your change from "Width 2" to "Size 2", but I still have the same
problem.  Upon another user's recommendation I made the contour lines thin,
which improved their look tremendously, but still wonder how to antialias
thicker lines. Do you know if there is a test MAPFILE & .shp file with wavy
lines, with which I could test my system? 

Thanks,
Bailey 

-----Original Message-----
From: Steve Lime [mailto:Steve.Lime at dnr.state.mn.us] 
Sent: Wednesday, September 12, 2007 3:40 PM
To: Bailey Landress
Subject: Re: [UMN_MAPSERVER-USERS] antialias lines

Try SIZE 2 instead of WIDTH 2. I don't think the cartoline code respects
width.

Steve

>>> On 9/12/2007 at 5:04 AM, in message
<LISTSERV%200709120504083918.0164 at LISTS.UMN.EDU>, Bailey Landress
<bailey at TEXASSABAL.COM> wrote:
> Trying to fix jagged lines.  See anything wrong with the Mapfile below? 
> When I change IMAGEMODE to RGBA the background of my map turns black.
Also
> if I take out   SYMBOL "cartoline" from the Style tag under Layer, I do
not
> see any change in regard to antialiasing.  Any help would be greatly
> appreciated.  Thanks.
> 
> MapServer version 4.10.2
> 
> In MAP:
> 
> IMAGETYPE png24
> 
> OUTPUTFORMAT
>    	  NAME png24
> 	  DRIVER "GD/PNG"
> 	  MIMETYPE "image/png"
> 	  IMAGEMODE RGB
> 	  EXTENSION "png"
> END   
> 
> SYMBOL
> 	  NAME 'cartoline'
> 	  TYPE cartoline
> 	  LINECAP round
>  	  LINEJOIN round
> 	  LINEJOINMAXSIZE 3
> END
> 
> 
> 
> LAYER
> 	 NAME "Contours"
> 	 STATUS on
> 	 TYPE LINE
> 	 DATA "Contours"
> 	 SYMBOLSCALE 24000
> 	 TRANSPARENCY alpha
> 	 CLASS
> 	 	  STYLE
> 		  	   COLOR 000 000 000
> 			   SYMBOL "cartoline"
> 			   ANTIALIAS TRUE
> 			   WIDTH 2
> 	    	   END
> 	 END
> END	
> 
> 
> Bailey



More information about the mapserver-users mailing list