[mapserver-users] problem with Symbol and Style

Havard Tveite havard.tveite at umb.no
Sat Aug 27 14:44:07 PDT 2011


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
>
>




More information about the MapServer-users mailing list