Labels are not displayed in 4.4.1

Eric Bridger eric at GOMOOS.ORG
Tue Mar 8 06:05:36 PST 2005


On Tue, 2005-03-08 at 08:50, Björn Platzen wrote:
> Hello List,
> 
> I just upgraded from Version 3.6.5 to 4.4.1 and now some of my labels don't
> seem to appear...
> 
> Here's a snippet from the mapfile:
> 
> These Labels don't appear:
>     LAYER
>       NAME "beschriftung1"
>       TYPE ANNOTATION
>       DATA "labels"
>       STATUS ON
>       CLASSITEM "Level"
>       LABELITEM "Text"
>       LABELANGLEITEM "Angle"
>       SYMBOLSCALE 6500
>       LABELCACHE on
>       CLASS
>         EXPRESSION "1"
>         MAXSCALE 25000
>         LABEL
>           ANTIALIAS true
>           TYPE TRUETYPE
>           FONT swiss
>           MINSIZE 6
>           SIZE 8
>           MAXSIZE 10
>           COLOR 0 0 0
>           FORCE true
>           POSITION uc
>         END
>       END
>       CLASS
>         EXPRESSION "43"
>         LABEL
>           TYPE TRUETYPE
>           FONT swiss
>           ANTIALIAS true
>           MINSIZE 8
>           SIZE 12
>           MAXSIZE 16
>           COLOR 0 0 0
>           FORCE true
>           POSITION uc
>         END
>       END
>     END
> 
> These Labels _do_ appear:
>     LAYER
>       NAME quartiere
>       TYPE POLYGON
>       STATUS on
>       MAXSCALE 200000
>       DATA quartiere
>       CLASSITEM "ID"
>       LABELITEM "Name"
>       LABELMINSCALE 8000
>       LABELCACHE off
>       CLASS
>         EXPRESSION '1'
>         STYLE
>           SYMBOL 'circle'
>           SIZE 6
>           OUTLINECOLOR 131 157 197
>         END
>         LABEL
>           #FORCE TRUE
>           ANTIALIAS true
>           POSITION auto
>           SIZE 10
>           TYPE TRUETYPE
>           FONT swiss
>           COLOR 0 51 255
>           #OUTLINECOLOR 0 0 0
>         END  # Label
>       END  # CLASS
>       template "rahmen_q.html"
>     END #LAYER
> 
> With version 3.6.5, all the labels appeared. So I think, there must have
> been some changes in the mapfile-syntax for labels, but I wasn't able to
> find out what...

This is just a guess, but you may need an empty STYLE object in your
ANNOTATION layer.Try putting STYLE END in your CLASS.

Eric



More information about the MapServer-users mailing list