[Mapserver-users] TrueType Symbols Problems in 4.0b?

Paul.R.Holt at saj02.usace.army.mil Paul.R.Holt at saj02.usace.army.mil
Fri Jun 20 07:11:47 PDT 2003


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C33735.E2A42B30
Content-Type: text/plain;
	charset="iso-8859-1"

List Members:

I am have troubling getting truetype symbols to work in 4.0b or the current
development version.

The following map and symbol file snippets display a state highway shield.
This worked fine on a previous 4.0 development version (Nightly 3-27-03?)
but now displays an error when php-mapscript tries to render the image.

"Fatal error: Call to a member function on a non-object ..."

Truetype works ok for labeling,  just not symbols.

Any help or clues would be appreciated.

BTW
The shp2img will not return an image (no error message,  just a ":") unless
I remove the truetype symbol or change to a bit map symbol.
We are using Linux (Redhat Advanced Server) to run our mapserver
applications.

Thanks

########## MapFile:  Annotation Layer ################
.
.
.
CLASS
	EXPRESSION 'S1'
	STYLE
		SYMBOL 'st_shield'
		COLOR 255 255 255
		OUTLINECOLOR 0 0 0
		SIZE 22
	END
	LABEL
		MINFEATURESIZE 25
		MINDISTANCE 150
		TYPE truetype
		FONT "arial-bold"
		SIZE 8
		COLOR 0 0 0
	END
END
.
.
.
######### Symbol File ###############
.
.
.
SYMBOL
	NAME "st_shield"
	TYPE TRUETYPE
	FONT "shields"
	FILLED true
	CHARACTER "U"
END
.
.
.

Paul R. Holt
Senior Geographer
USACE-Jacksonville


------_=_NextPart_001_01C33735.E2A42B30
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2654.45">
<TITLE>TrueType Symbols Problems in 4.0b?</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2 FACE=3D"Arial">List Members:</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">I am have troubling getting truetype =
symbols to work in 4.0b or the current development version.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">The following map and symbol file =
snippets display a state highway shield.  This worked fine on a =
previous 4.0 development version (Nightly 3-27-03?) but now displays an =
error when php-mapscript tries to render the image.</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">"Fatal error: Call to a member =
function on a non-object ..."</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Truetype works ok for labeling,  =
just not symbols.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Any help or clues would be =
appreciated.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">BTW</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">The shp2img will not return an image =
(no error message,  just a ":") unless I remove the =
truetype symbol or change to a bit map symbol.</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">We are using Linux (Redhat Advanced =
Server) to run our mapserver applications.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Thanks</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">########## MapFile:  Annotation =
Layer ################</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">CLASS</FONT>
<BR>        <FONT SIZE=3D2 =
FACE=3D"Arial">EXPRESSION 'S1'</FONT>
<BR>        <FONT SIZE=3D2 =
FACE=3D"Arial">STYLE</FONT>
<BR>        =
        <FONT SIZE=3D2 =
FACE=3D"Arial">SYMBOL 'st_shield'</FONT>
<BR>        =
        <FONT SIZE=3D2 =
FACE=3D"Arial">COLOR 255 255 255</FONT>
<BR>        =
        <FONT SIZE=3D2 =
FACE=3D"Arial">OUTLINECOLOR 0 0 0</FONT>
<BR>        =
        <FONT SIZE=3D2 =
FACE=3D"Arial">SIZE 22</FONT>
<BR>        <FONT SIZE=3D2 =
FACE=3D"Arial">END</FONT>
<BR>        <FONT SIZE=3D2 =
FACE=3D"Arial">LABEL</FONT>
<BR>        =
        <FONT SIZE=3D2 =
FACE=3D"Arial">MINFEATURESIZE 25</FONT>
<BR>        =
        <FONT SIZE=3D2 =
FACE=3D"Arial">MINDISTANCE 150</FONT>
<BR>        =
        <FONT SIZE=3D2 =
FACE=3D"Arial">TYPE truetype</FONT>
<BR>        =
        <FONT SIZE=3D2 =
FACE=3D"Arial">FONT "arial-bold"</FONT>
<BR>        =
        <FONT SIZE=3D2 =
FACE=3D"Arial">SIZE 8</FONT>
<BR>        =
        <FONT SIZE=3D2 =
FACE=3D"Arial">COLOR 0 0 0</FONT>
<BR>        <FONT SIZE=3D2 =
FACE=3D"Arial">END</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">END</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">######### Symbol File =
###############</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">SYMBOL</FONT>
<BR>        <FONT SIZE=3D2 =
FACE=3D"Arial">NAME "st_shield"</FONT>
<BR>        <FONT SIZE=3D2 =
FACE=3D"Arial">TYPE TRUETYPE</FONT>
<BR>        <FONT SIZE=3D2 =
FACE=3D"Arial">FONT "shields"</FONT>
<BR>        <FONT SIZE=3D2 =
FACE=3D"Arial">FILLED true</FONT>
<BR>        <FONT SIZE=3D2 =
FACE=3D"Arial">CHARACTER "&#085;"</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">END</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Paul R. Holt</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">Senior Geographer</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">USACE-Jacksonville</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C33735.E2A42B30--



More information about the MapServer-users mailing list