Weird TrueType labeling issue.

Stephen Lime steve.lime at dnr.state.mn.us
Tue Mar 14 22:27:04 EST 2000


This is a GD version mismatch problem. GD 1.3 and higher use a row major (i.e. pixel[y][x]) scheme for storing the images. There is code to handle this if the appropriate preprocessor variables are set. Did you edit Makefiles in both ms_3.3.008 and ms_3.3.00/gdft? Could also be extraneous versions of GD installed on your machine.

Steve

<<< Trevor Banister <Banister at BANISTER.COM>  3/14  5:39p >>>
I'm working on street labeling (Auto Position, Auto Angle, etc.) and ran
into a weird TrueType labeling issue.

When I switch from bitmap to TrueType in 3.3.008 it looks like the label
overlay is rotated 90 degrees and mirrored.

Any thoughts?

Trevor


Weird TTF  version at:
http://216.150.214.7/cgi-bin/mapserver.exe?mode=browse&layer=lakes&layer=str
eams&layer=secondary_roads&zoomdir=1&zoomsize=5&imgxy=299.5+299.5&imgext=491
230.829713+4386835.221426+496522.493513+4392126.885251&map=D%3A%5Cinetpub%5C
maps%5Cdemo.map&img.x=333&img.y=308

Normal Bitmapped version at:
http://216.150.214.7/cgi-bin/mapserver.exe?mode=browse&layer=lakes&layer=str
eams&layer=secondary_roads&zoomdir=0&zoomsize=5&imgxy=299.5+299.5&imgext=493
643.439703+4388876.796568+494701.772463+4389935.129333&map=D%3A%5Cinetpub%5C
maps%5CdemoB.map&img.x=215&img.y=387


LAYER
  NAME secondary_roads
  TYPE LINE
  STATUS OFF
  DATA coroadsz13
  MAXSCALE 500000000
  SYMBOLSCALE 24000
  LABELITEM "Fename"

  CLASS
    NAME "Secondary Roads"
    COLOR 212 212 212
    SYMBOL 13
    SIZE 3
    MAXSIZE 4
  LABEL
      BACKGROUNDCOLOR 200 255 255
      COLOR 30 94 94
      TYPE TRUETYPE
      ANTIALIAS
      FONT times
      POSITION AUTO
      MINFEATURESIZE AUTO
      ANGLE AUTO
      WRAP " "
    END # Label
  END
END # Layer




More information about the mapserver-users mailing list