[Mapserver-users] Mapserver 3.5 - using TrueType Fonts
Steve McCrone
mccrone at pc.jaring.my
Thu Jan 9 18:33:09 PST 2003
This is a multi-part message in MIME format.
------=_NextPart_000_0007_01C2B893.AB990230
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I have line data shape file (i.e. roads) and I wish to label the roads =
using the attribute "Road_name".
I've tried a number of things w.r.t. setting the path for the FONTSET =
but still cannot get it.=20
my template & map file are in the wwwroot, which is my Home Directory on =
Win2K and IIS.
I have my fonts.list file in "wwwroot\fonts\fonts.list"
when I try FONTSET "fonts/fonts.list" I get this error -=20
getSymbol(): Symbol definition error. (FONT):(47)=20
Then I try SYMBOLSET "C:\Inetpub\wwwroot\symbols\symbols35.sym" I get =
this error -=20
getSymbol(): Symbol definition error. (FONT):(48)=20
I don't have a symbols.sym file from the downloaded stuff, just the =
symbols35.sym file
Don't know what to try next. Here is my map file (there could be errors)
MAP
NAME S1EX1
EXTENT 101.6 3.03 101.77 3.25
#EXTENT [minx] [miny] [maxx] [maxy]=20
SIZE 500 400
#FONTSET "fonts/fonts.list"
#SYMBOLSET "C:\Inetpub\wwwroot\symbols\symbols35.sym"
SYMBOLSET "/symbols/symbols35.sym"
FONTSET "C:\Inetpub\wwwroot\fonts\fonts.list"
#FONTSET ../fonts/fonts.list
#FONTSET "web/sdbdev/packages/dv-mapping/fonts/fonts.list"
SHAPEPATH "data/Malaysia"
WEB
TEMPLATE s1ex1.html
IMAGEPATH "set in index.html"
IMAGEURL "set in index.html"
END
LAYER # States
NAME "KlangValley"
DATA KlangValley
STATUS DEFAULT
TYPE POLYGON
CLASSITEM "Negeri"
CLASS
NAME "KL"
COLOR 255 255 128
OUTLINECOLOR 0 0 0
END # end of class object
END # end of layer object
LAYER
NAME "roads"
STATUS OFF
DATA ROAD_GPS
LABELITEM "Road_name" =20
TYPE LINE
CLASS
COLOR 0 0 255
LABEL
TYPE TRUETYPE
ANTIALIAS
FONT arial
COLOR 0 0 0
OUTLINECOLOR 220 220 220
SIZE 11
#SIZE MEDIUM
ANGLE AUTO
POSITION UC
OFFSET 0 2 =20
buffer 2
END#label
END
END # roads
END # end of map file
#=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
------=_NextPart_000_0007_01C2B893.AB990230
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4134.600" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>I have line data shape file (i.e. =
roads) and I wish=20
to label the roads using the attribute "Road_name".</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>I've tried a number of things w.r.t. =
setting the=20
path for the FONTSET but still cannot get it. </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>my template & map file are in the =
wwwroot,=20
which is my Home Directory on Win2K and IIS.<BR>I have my fonts.list =
file in=20
"wwwroot\fonts\fonts.list"</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>when I try FONTSET "fonts/fonts.list" I =
get this=20
error - </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>getSymbol(): Symbol definition error. =
(FONT):(47)=20
</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Then I try SYMBOLSET=20
"C:\Inetpub\wwwroot\symbols\symbols35.sym" I get this error - =
</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>getSymbol(): Symbol definition error. =
(FONT):(48)=20
</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>I don't have a symbols.sym file from =
the downloaded=20
stuff, just the symbols35.sym file</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Don't know what to try next. Here is my =
map file=20
(there could be errors)</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>MAP<BR>NAME S1EX1<BR>EXTENT 101.6 3.03 =
101.77=20
3.25<BR>#EXTENT [minx] [miny] [maxx] [maxy] <BR>SIZE 500 400<BR>#FONTSET =
"fonts/fonts.list"<BR>#SYMBOLSET=20
"C:\Inetpub\wwwroot\symbols\symbols35.sym"<BR>SYMBOLSET=20
"/symbols/symbols35.sym"<BR>FONTSET=20
"C:\Inetpub\wwwroot\fonts\fonts.list"<BR>#FONTSET=20
../fonts/fonts.list<BR>#FONTSET=20
"web/sdbdev/packages/dv-mapping/fonts/fonts.list"</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>SHAPEPATH "data/Malaysia"</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>WEB<BR> TEMPLATE =
s1ex1.html<BR> =20
IMAGEPATH "set in index.html"<BR> IMAGEURL "set in=20
index.html"<BR>END</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>LAYER # States<BR> =
NAME=20
"KlangValley"<BR> DATA =
KlangValley<BR> =20
STATUS DEFAULT<BR> TYPE POLYGON<BR> =20
CLASSITEM "Negeri"<BR> CLASS<BR> =
NAME=20
"KL"<BR> COLOR 255 255 128<BR> =
OUTLINECOLOR=20
0 0 0<BR> END # end of class object<BR>END # end of layer=20
object</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>LAYER<BR> NAME "roads"<BR> =
STATUS=20
OFF<BR> DATA ROAD_GPS<BR> LABELITEM "Road_name" =
<BR> =20
TYPE LINE<BR> CLASS<BR> COLOR 0 0=20
255<BR> =
LABEL<BR> =20
TYPE TRUETYPE<BR> =20
ANTIALIAS<BR> FONT =
arial<BR> =20
COLOR 0 0 0<BR> OUTLINECOLOR 220 220 220<BR> SIZE =
11<BR> #SIZE=20
MEDIUM<BR> ANGLE AUTO<BR> POSITION UC<BR> OFFSET 0=20
2 <BR> buffer =
2<BR> =20
END#label<BR> END<BR>END # roads<BR>END # end of map=20
file<BR>#=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<BR></FONT></DIV=
></BODY></HTML>
------=_NextPart_000_0007_01C2B893.AB990230--
More information about the MapServer-users
mailing list