MapServer / MapServer-import

3 stars 2 forks source link

TRUETYPE LABEL/SYMBOL rotated POSITION differs #1611

Open tbonfort opened 12 years ago

tbonfort commented 12 years ago

Reporter: huub@geodan.nl Date: 2006/01/12 - 17:29

Rotated LABELS TRUETYPE are placed differently from rotated TRUETYPE SYMBOLS

The truetype character (anchor.jpg : anchorpoint indicated with red arrow)

The character is to be rotated on the number in item DEGREES 0 -360

Compare : (look at the red/pink triangles in the jpgs)
(A LABEL uses TEXT, a SYMBOL TYPE TRUETYPE only CHARACTER)
=============================================================================
as a LABEL on_center.jpg           | as a TRUETYPE SYMBOL off_center.jpg
============================================================================
LABELITEM "DEGREES"                |      CLASS
  CLASS                            |        EXPRESSION ([BEARING] = 2)
    TEXT "2"                       |        STYLE
    EXPRESSION ([BEARING] = 2)     |        SYMBOL "scs2"
    LABEL                          |        SIZE 14
      SIZE 14                      |          COLOR 0 0 255
      POSITION CC                  |          ANGLEITEM "DEGREES"
      COLOR 0 0 255                |        END
      TYPE TRUETYPE                |      END
      FONT scs                     |
      ANTIALIAS false              |      SYMBOL
      BUFFER 0                     |        NAME scs2
      FORCE true                   |        TYPE TRUETYPE
    END                            |        FONT scs
    STYLE                          |        POSITION CC #(or LL or anything)
    END                            |        ANTIALIAS false
  END                              |        FILLED true
                                            CHARACTER "2"
                                          END

Rotation of the truetype character as a symbol sweeps around the anchorpoint it 
seems to me (causing the placement to be off center)
POSITION setting has no effect

The placement of the LABEL is correct, 
POSITION setting does have effect:CC places it correctly on the geometry

I'll upload the three images hereafter

Regards Huub
tbonfort commented 12 years ago

Author: dmorissette Date: 2006/01/14 - 00:16

Reassigned to Steve as this is more of a core MapServer issue, and
labelling/symbols is his territory.
tbonfort commented 12 years ago

Author: sdlime Date: 2008/09/17 - 05:17 I didn't even realize this one existed, whoops...

Steve

tbonfort commented 12 years ago

Author: dmorissette Date: 2011/03/15 - 17:14 5.4/5.6 are over, moving to 6.0 milestone. Is this still an issue in 6.0?