varibale angle in annotation layer

Fawcett, David David.Fawcett at STATE.MN.US
Mon Apr 9 11:59:41 EDT 2007


Giuseppe, 

To create rotated labels, you need to use TrueType fonts.  

It looks like you are already trying to use TrueType, just change the
value of TYPE (in your LABEL block) to truetype.  

At the LAYER level, you will also need to add LABELANGLEITEM.  See the
mapfile reference at:
http://mapserver.gis.umn.edu/docs/reference/mapfile/layer

David.

-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
Behalf Of Giuseppe De Rossi
Sent: Monday, April 09, 2007 10:22 AM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: [UMN_MAPSERVER-USERS] varibale angle in annotation layer


Hi,
I wrote the following definition of a layer:

LAYER
    NAME 'MyAnnotationShape'
    TYPE ANNOTATION
    DATA 'MyAnnotationShape'
    STATUS DEFAULT
    LABELITEM "STRING"
    CLASSITEM "STRING"

    CLASS
      NAME 'All'
      EXPRESSION /./
      STYLE
        COLOR -1 -1 -1
      END
      LABEL
        COLOR 255 255 51
        ANTIALIAS TRUE
        SHADOWCOLOR 0 0 0 
        SHADOWSIZE 1 1
        TYPE BITMAP
        FONT arial
        SIZE LARGE
        POSITION CC
        PARTIALS FALSE
        BUFFER 2
      END
      
    END

  END

The layer is well displayed but the labels have all the same orientation
(orizhontal), but the original orientation of those label is variable,
which is the instruction in order to have a varible orientation ? How
can I use the column ANGLE in the dbf which defines for each label its
correct orientation ?
 
Thanks in advance

Giu
 
 --
 Email.it, the professional e-mail, gratis per te: http://www.email.it/f
 
 Sponsor:
 Fai crescere i tuoi sogni. Prestiti semplici e veloci
Rate da 20 euro al mese
 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=6332&d=20070409



More information about the mapserver-users mailing list