Today's CVS, labels that follow street segments and antialias lines

Steve Lime steve.lime at DNR.STATE.MN.US
Tue Mar 21 15:13:10 EST 2006


I believe you create a symbol like this:

SYMBOL
  TYPE SIMPLE
  NAME 'dash_10_on_10_off'
  STYLE '10 10'
END

STYLE
  SYMBOL 'dash_10_on_10_off'
  COLOR 170 153 34
  WIDTH 5
  ANTIALIAS TRUE
END

Steve

>>> Stephen Woodbridge <woodbri at swoodbridge.com> 3/21/2006 1:55:14 PM >>>
Steve Lime wrote:
> There haven't been any recent changes that I know of that would
> cause problems along these lines.
> 
> 1a) Benj's last patch was applied several weeks ago as mentioned in comment #31 of bug 1620.
> 1b) I'm running brand new CVS code here and MINDISTANCE is working as usual
> 
> 2) Paul's right, the most naive style would be:
> 
>        STYLE
>          COLOR 170 153 34
>          WIDTH 5
>          ANTIALIAS TRUE
>        END

OK, changing the mapfile to look like this, but reading the threads on 
this I thought you could use SYMBOL "circle" with SIZE n also.

How to I get dashed AA lines?

Thanks,
   -Steve W

> 3) I'll work up a test case for you. What should work is setting 2 styles: 1 for the fill and the second
> for the outline. E.g.:
> 
> STYLE COLOR 255 0 0 END
> STYLE
>    COLOR 170 153 34
>    WIDTH 5
>    ANTIALIAS TRUE
> END
> 
> Steve
> 
> 
>>>>Paul Spencer <pspencer at DMSOLUTIONS.CA> 3/21/2006 12:39:50 PM >>>
> 
> Steve,
> 
> re 1) the latest cvs had working labels following lines (more or  
> less) when I last did it.  I didn't check mindistance though.  And  
> there are still some outstanding issues I think (unless this is the  
> un-committed patch?)
> 
> re 2) you need to change SYMBOL "circle" to SYMBOL 0, SIZE 3 to WIDTH  
> 3 and set TRANSPARENCY ALPHA at the LAYER level.
> 
> re 3) I'd like to know the same thing.  I never got polygons working :(
> 
> Cheers
> 
> Paul
> 
> 
> 
> On 21-Mar-06, at 1:21 PM, Stephen Woodbridge wrote:
> 
> 
>>Hi all,
>>
>>I grabbed today CVS and I'm testing it with ka-map. I have a couple  
>>questions/issues:
>>
>>1) labels that follow street segments
>>   a) Benj has a patch that need to get integrated when ever he is  
>>ready
>>      I didn't get it built into my test version yet.
>>   b) MINDISTANCE on labels is not working
>>
>>2) Fuzzy brushes / antialiasing does not seem to be working. I'm  
>>using png output and the mapfile fragment looks like:
>>
>>    CLASS
>>      NAME "Interstate Highways"
>>      EXPRESSION "1"
>>      STYLE
>>        SYMBOL "circle"
>>        COLOR 170 153 34
>>        SIZE 5
>>        ANTIALIAS TRUE
>>      END
>>      STYLE
>>        SYMBOL "circle"
>>        COLOR 238 187 34
>>        SIZE 3
>>        ANTIALIAS TRUE
>>      END
>>    END
>>
>>3) How should I define a polygon layer so I can fill the polygon  
>>and outline it with antialiased?
>>
>>Thanks,
>>  -Steve W
> 
> 
> +-----------------------------------------------------------------+
> |Paul Spencer                           pspencer at dmsolutions.ca   |
> +-----------------------------------------------------------------+
> |Applications & Software Development                              |
> |DM Solutions Group Inc                 http://www.dmsolutions.ca/| 
> +-----------------------------------------------------------------+
> 



More information about the mapserver-dev mailing list