[Mapserver-users] Mapserver 3.5 - using TrueType Fonts

Steve McCrone mccrone at pc.jaring.my
Thu Jan 9 21:33:09 EST 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>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>my template &amp; 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>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>when I try FONTSET "fonts/fonts.list" I =
get this=20
error - </FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>getSymbol(): Symbol definition error. =
(FONT):(47)=20
</FONT></DIV>
<DIV>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>getSymbol(): Symbol definition error. =
(FONT):(48)=20
</FONT></DIV>
<DIV>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>SHAPEPATH "data/Malaysia"</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>WEB<BR>&nbsp; TEMPLATE =
s1ex1.html<BR>&nbsp;=20
IMAGEPATH "set in index.html"<BR>&nbsp; IMAGEURL "set in=20
index.html"<BR>END</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>LAYER # States<BR>&nbsp;&nbsp;&nbsp; =
NAME=20
"KlangValley"<BR>&nbsp;&nbsp;&nbsp; DATA =
KlangValley<BR>&nbsp;&nbsp;&nbsp;=20
STATUS DEFAULT<BR>&nbsp;&nbsp;&nbsp; TYPE POLYGON<BR>&nbsp;&nbsp;&nbsp;=20
CLASSITEM "Negeri"<BR>&nbsp;&nbsp;&nbsp; CLASS<BR>&nbsp;&nbsp;&nbsp; =
NAME=20
"KL"<BR>&nbsp;&nbsp;&nbsp; COLOR 255 255 128<BR>&nbsp;&nbsp;&nbsp; =
OUTLINECOLOR=20
0 0 0<BR>&nbsp; END # end of class object<BR>END # end of layer=20
object</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>LAYER<BR>&nbsp; NAME "roads"<BR>&nbsp; =
STATUS=20
OFF<BR>&nbsp; DATA ROAD_GPS<BR>&nbsp; LABELITEM "Road_name"&nbsp; =
<BR>&nbsp;=20
TYPE LINE<BR>&nbsp; CLASS<BR>&nbsp;&nbsp;&nbsp; COLOR 0 0=20
255<BR>&nbsp;&nbsp;&nbsp; =
LABEL<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
TYPE TRUETYPE<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
ANTIALIAS<BR>&nbsp;FONT =
arial<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
COLOR 0 0 0<BR>&nbsp;OUTLINECOLOR 220 220 220<BR>&nbsp;SIZE =
11<BR>&nbsp;#SIZE=20
MEDIUM<BR>&nbsp;ANGLE AUTO<BR>&nbsp;POSITION UC<BR>&nbsp;OFFSET 0=20
2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;buffer =
2<BR>&nbsp;&nbsp;&nbsp;=20
END#label<BR>&nbsp; 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