Lines with truetype font symbols
Håvard Tveite
havard.tveite at UMB.NO
Thu Aug 30 09:04:17 EDT 2007
I am using short straight lines of truetype font symbols to
place oriented symbols on the map at specific locations.
In Mapserver 4.10 this worked OK, but in 5.0b5 it gives the
expected results for lines going from west to east (larger
x-coordinate for the end than the start of the line), but
the opposite orientation of the symbol for lines that go
from east to west (larger x-coordinate for the start than
the end of the line).
Is this expected behaviour?
A map file that illustrates the problem:
***********************************************************
MAP
SIZE 100 100
EXTENT 0 0 100 100
PROJECTION
"init=epsg:32633"
END
FONTSET /usr/openwin/lib/X11/fonts/TrueType/font.list
WEB
IMAGEPATH "/users/ikf/ikfht/public_html/mapserver/tmp/"
IMAGEURL "/~ikfht/mapserver/tmp/"
TEMPLATE test.html
END #web
SYMBOL
NAME "tttriangle"
TYPE truetype
FONT arial
GAP -1 # change in mapserver 5!
CHARACTER ">"
END
LAYER
NAME "orientation"
TYPE LINE
STATUS DEFAULT
FEATURE
# line from west to east
POINTS
50 10
85 50
END # Points
TEXT 'OK'
END # Feature
FEATURE
# line from east to west
POINTS
50 60
10 90
END # Points
TEXT '!OK'
END # Feature
CLASS
NAME "symbolline"
STYLE
COLOR 255 0 255 # magenta
SYMBOL 'tttriangle'
SIZE 20
END #style
LABEL
TYPE TRUETYPE
FONT arial
SIZE 10
END # label
END #class
END #layer orientation
END # Map file
***********************************************************
Mapserver 5.0b5:
http://gis.umb.no/cgi-bin/mapserv_5?map=/users/ikf/ikfht/mapserv/tests/orientation.map
Mapserver 4.10.0:
http://gis.umb.no/cgi-bin/mapserv_4?map=/users/ikf/ikfht/mapserv/tests/orientation.map
MapServer version 5.0.0-beta5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=EPPL7 INPUT=SDE INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
--
Håvard Tveite
Department of Mathematical Sciences and Technology, UMB
Drøbakveien 31, POBox 5003, N-1432 Ås, NORWAY
Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/
More information about the mapserver-dev
mailing list