[Mapserver-dev] Draw line with antialias

andrea.rogges at virgilio.it andrea.rogges at virgilio.it
Tue Jun 17 09:02:28 EDT 2003


Dear Steve,
thanks for your support, you are right when you say that drawing a single
line (deep a single pixel) with the antialias, more or less, we are able
to draw with different styles; the problem is get to draw a single line
with the antialias: which kind of style do I have to use? Do I have to specify
it or is enough to specify the LAYER as LINES?

Andrea.

>-- Messaggio originale --
>Date: Fri, 13 Jun 2003 12:51:41 -0500
>From: "Steve Lime" <steve.lime at dnr.state.mn.us>
>To: <assefa at dmsolutions.ca>,<andrea.rogges at virgilio.it>
>Cc: <mapserver-dev at lists.gis.umn.edu>
>Subject: Re: [Mapserver-dev] Draw line with antialias
>
>
>Based on the GD docs you may only draw single width lines antialiased.
>So if you want
>fat lines you have 1 option at the moment:
>
>  - draw a fat center with single pixel lines on the outside (styles
>with offsets)
>
>Ideally the CARTOLINE symbol type will be the way to go because is
>creates a thick line
>by creating a filled polygon and not a brush. So, in that case we could
>add to that code
>to draw an outline around the line polygon that could be antialiased. I
>don't believe the
>author of that code has mucked with GD antialiasing yet. I will mention
>it to him though.
>
>Steve
>
>>>> <andrea.rogges at virgilio.it> 06/13/03 11:15AM >>>
>OK, what is your suggest for obtain a line drawing with antialias?
>
>>-- Messaggio originale --
>>Date: Fri, 13 Jun 2003 11:10:18 -0500
>>From: "Steve Lime" <steve.lime at dnr.state.mn.us>
>>To: <assefa at dmsolutions.ca>,<andrea.rogges at virgilio.it>
>>Cc: <mapserver-dev at lists.gis.umn.edu>
>>Subject: Re: [Mapserver-dev] Draw line with antialias
>>
>>
>>Since you're using an ellipse (a brush) the output cannot be
>antialiased
>>with GD as it sits now.
>>
>>Steve
>>
>>>>> <andrea.rogges at virgilio.it> 06/13/03 10:55AM >>>
>>Here is my mapfile definition...
>>
>>>-- Messaggio originale --
>>>Date: Fri, 13 Jun 2003 10:50:42 -0500
>>>From: "Steve Lime" <steve.lime at dnr.state.mn.us>
>>>To: <assefa at dmsolutions.ca>,<andrea.rogges at virgilio.it>
>>>Cc: <mapserver-dev at lists.gis.umn.edu>
>>>Subject: Re: [Mapserver-dev] Draw line with antialias
>>>
>>>
>>>Send your mapfile definition. You can tell if it's working by the
>>time
>>>it takes to generate a
>>>map. Antialiasing is SLOOOOWWWW.
>>>
>>>There are also some caveats to the GD support- these are GD issues,
>>not
>>>MapServer issues.
>>>For example, styled symbols (i.e. dashes) cannot be antialiased, nor
>>>can brushed lines. Overall
>>>I was pretty disappointed with the support as it sits now. I'm sure
>>it
>>>will bet better over time.
>>>
>>>Steve
>>>
>>>>>> <andrea.rogges at virgilio.it> 06/13/03 10:17AM >>>
>>>It doesn't work :-(...I use a shapefile layer only with lines...the
>>>problem
>>>can be in SYMBOL definition?
>>>
>>>
>>>>-- Messaggio originale --
>>>>Date: Fri, 13 Jun 2003 11:10:01 -0400
>>>>From: Yewondwossen Assefa <assefa at dmsolutions.ca>
>>>>To: andrea.rogges at virgilio.it 
>>>>CC: mapserver-dev <mapserver-dev at lists.gis.umn.edu>
>>>>Subject: Re: [Mapserver-dev] Draw line with antialias
>>>>
>>>>
>>>> From what I can see it the code you have to specify antilaias TRUE
>>>in
>>>
>>>>the Style object :
>>>>
>>>> CALSS
>>>>   ...
>>>>     Style
>>>>        ....
>>>>        ANTIALIAS TRUE
>>>>        ...
>>>>      END
>>>>
>>>>andrea.rogges at virgilio.it wrote:
>>>>
>>>>>Sorry for my previous message, taking order of dll's now it works
>>>;-)
>>>>>
>>>>>But the question now is: how can I draw line with antialias ?
>>>>>
>>>>>  
>>>>>
>>>>>>-- Messaggio originale --
>>>>>>Date: Fri, 13 Jun 2003 09:27:05 -0400
>>>>>>From: Yewondwossen Assefa <assefa at dmsolutions.ca>
>>>>>>To: andrea.rogges at virgilio.it 
>>>>>>CC: mapserver-dev at lists.gis.umn.edu 
>>>>>>Subject: Re: [Mapserver-dev] Draw line with antialias
>>>>>>
>>>>>>
>>>>>>New binaries are at :
>>>>>>
>>>>>>http://www2.dmsolutions.ca/mapserver/dl/mapserver-4.0-dev-win32-php4.3.2.zip
>
>>
>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>andrea.rogges at virgilio.it wrote:
>>>>>>
>>>>>>    
>>>>>>
>>>>>>>Thanks very much ;-)
>>>>>>>
>>>>>>>Andrea.
>>>>>>>
>>>>>>>PS: where can I find new files ?
>>>>>>>
>>>>>>> 
>>>>>>>
>>>>>>>      
>>>>>>>
>>>>>>>>-- Messaggio originale --
>>>>>>>>Date: Thu, 12 Jun 2003 11:45:37 -0400
>>>>>>>>From: Yewondwossen Assefa <assefa at dmsolutions.ca>
>>>>>>>>To: Daniel Morissette <morissette at dmsolutions.ca>
>>>>>>>>CC: andrea.rogges at virgilio.it, mapserver-dev at lists.gis.umn.edu 
>>>>>>>>Subject: Re: [Mapserver-dev] Draw line with antialias
>>>>>>>>
>>>>>>>>
>>>>>>>>I will add that to the makefiles and It will be available in
>the
>>>next
>>>>>>>>        
>>>>>>>>
>>>>>
>>>>>  
>>>>>
>>>>>>>>binaries sometime this afternoon.
>>>>>>>>
>>>>>>>>Later,
>>>>>>>>
>>>>>>>>Daniel Morissette wrote:
>>>>>>>>
>>>>>>>>   
>>>>>>>>
>>>>>>>>        
>>>>>>>>
>>>>>>>>>andrea.rogges at virgilio.it wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>     
>>>>>>>>>
>>>>>>>>>          
>>>>>>>>>
>>>>>>>>>>The results is this message:
>>>>>>>>>>
>>>>>>>>>>"loadStyle(): GD library error: Antialiasing support is not
>>>available.
>>>>>>>>>>Get a newer version of GD!"
>>>>>>>>>>
>>>>>>>>>>What can I do? Do I need to recompile MapServer with GD
>>v2.0.15
>>>instead
>>>>>>>>>>of v2.0.12?
>>>>>>>>>>
>>>>>>>>>>  
>>>>>>>>>>
>>>>>>>>>>       
>>>>>>>>>>
>>>>>>>>>>            
>>>>>>>>>>
>>>>>>>>>I fixed this after the 4.0 beta for the Unix version.  For the
>>>Windows
>>>>>>>>>version, a -DUSE_GD_ANTIALIAS compile flag will have to be
>>added
>>>to
>>>>>>>>>          
>>>>>>>>>
>>>>>the
>>>>>  
>>>>>
>>>>>>>>>makefiles.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>     
>>>>>>>>>
>>>>>>>>>          
>>>>>>>>>
>>>>>>>>-- 
>>>>>>>>----------------------------------------------------------------
>>>>>>>>Assefa Yewondwossen           
>>>>>>>>Software Analyst   
>>>>>>>>
>>>>>>>>Email: assefa at dmsolutions.ca    
>>>>>>>>http://www.dmsolutions.ca/ 
>>>>>>>>
>>>>>>>>Phone: (613) 565-5056 (ext 14)
>>>>>>>>Fax:   (613) 565-0925
>>>>>>>>----------------------------------------------------------------
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>   
>>>>>>>>
>>>>>>>>        
>>>>>>>>
>>>>>>>
>>>>>>>_______________________________________________
>>>>>>>Mapserver-dev mailing list
>>>>>>>Mapserver-dev at lists.gis.umn.edu 
>>>>>>>http://lists.gis.umn.edu/mailman/listinfo/mapserver-dev 
>>>>>>>
>>>>>>> 
>>>>>>>
>>>>>>>      
>>>>>>>
>>>>>>-- 
>>>>>>----------------------------------------------------------------
>>>>>>Assefa Yewondwossen           
>>>>>>Software Analyst   
>>>>>>
>>>>>>Email: assefa at dmsolutions.ca    
>>>>>>http://www.dmsolutions.ca/ 
>>>>>>
>>>>>>Phone: (613) 565-5056 (ext 14)
>>>>>>Fax:   (613) 565-0925
>>>>>>----------------------------------------------------------------
>>>>>>
>>>>>>
>>>>>>
>>>>>>    
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>  
>>>>>
>>>>
>>>>-- 
>>>>----------------------------------------------------------------
>>>>Assefa Yewondwossen           
>>>>Software Analyst   
>>>>
>>>>Email: assefa at dmsolutions.ca    
>>>>http://www.dmsolutions.ca/ 
>>>>
>>>>Phone: (613) 565-5056 (ext 14)
>>>>Fax:   (613) 565-0925
>>>>----------------------------------------------------------------
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>_______________________________________________
>>>Mapserver-dev mailing list
>>>Mapserver-dev at lists.gis.umn.edu 
>>>http://lists.gis.umn.edu/mailman/listinfo/mapserver-dev 
>>
>>
>
>






More information about the mapserver-dev mailing list