[mapserver-users] problem with Symbol and Style

Valeria Munoz I valemunoz at gmail.com
Sun Aug 28 11:30:04 PDT 2011


Can i display a outliner?

Thanks for the reply!!

Enviado desde mi iPhone

El 27-08-2011, a las 17:44, Havard Tveite <havard.tveite at umb.no> escribió:

> Valeria,
> 
> To display simple lines (in the latest versions of
> Mapserver), you should take away the SYMBOL from the
> STYLE, and specify the WIDTH of the line (not the
> SIZE). You can skip ANTIALIAS (you can't even turn
> it off for AGG).
> 
> STYLE
>  WIDTH 12
>  COLOR 200 112 64
> END
> STYLE
>  WIDTH 10
>  COLOR 224 136 72
> END
> 
> 
> Håvard
> 
> On 26/08/11 23:32, Valeria Muñoz wrote:
>> HI!!!
>> 
>> i have problem with my mapfile. i'm trying to display street but i just
>> get circle like this not a continuous and perfect line.
>> 
>> my mapserver version is 6.
>> 
>> 
>> please help!!
>> 
>> my code is:
>> 
>> LAYER
>>     NAME 'RM'
>>     TYPE LINE
>>     MAXSCALE 15000
>>     LABELMAXSCALE 15000
>>     MINSCALE 5000
>>     LABELMINSCALE 5000
>>         DATA 'street.shp'
>>     METADATA
>> 'wms_title'RM'
>>     END
>>     STATUS DEFAULT
>>     TRANSPARENCY 100
>>     PROJECTION
>> 'proj=longlat'
>> 'ellps=WGS84'
>> 'datum=WGS84'
>> 'no_defs'
>> ''
>>     END
>>     LABELITEM 'NAME'
>>         CLASS
>> 
>>             NAME 'c_RM'
>>           STYLE
>>             SYMBOL 'linecc'
>>             ANTIALIAS TRUE
>>             SIZE 12
>>             COLOR 200 112 64
>>            END
>>            STYLE
>>             SYMBOL 'defline'
>>             ANTIALIAS TRUE
>>             SIZE 10
>>             COLOR 224 136 72
>>            END
>>             LABEL
>>             TYPE truetype
>>             FONT 'arialbd'
>>             SIZE 9
>>             MINSIZE 9
>>             MAXSIZE 9
>>             ANTIALIAS TRUE
>>             COLOR 25 25 25
>>             ANGLE FOLLOW
>>             FORCE FALSE
>>             POSITION cc
>>             BUFFER 10
>>             MINDISTANCE 7000
>>             MINFEATURESIZE 50
>>             OFFSET 0 0
>>             PARTIALS FALSE
>>         END
>>     END
>> END
>> 
>>  Symbol
>>         Name 'linecc'
>>         Type ELLIPSE
>>         Filled TRUE
>>         ANTIALIAS TRUE
>>         Points
>>             1 1
>>             END
>>     END
>>     Symbol
>>         Name 'defline'
>>         Type ELLIPSE
>>         Filled TRUE
>>         ANTIALIAS TRUE
>>         Points
>>             1 1
>>             END
>>         END
>> 
>> 
> 
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users



More information about the MapServer-users mailing list