<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="PlaceType"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="PlaceName"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="place"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:"Comic Sans MS";
panose-1:3 15 7 2 3 3 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Comic Sans MS";
color:windowtext;
font-weight:normal;
font-style:normal;
text-decoration:none none;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=3 face="Comic Sans MS"><span style='font-size:
12.0pt;font-family:"Comic Sans MS"'>Has anyone else tried to add a class to a
layer with either:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Courier New"><span style='font-size:12.0pt;
font-family:"Courier New"'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New"'>$layer->updateFromString(‘LABEL CLASS NAME
"<st1:place w:st="on"><st1:PlaceName w:st="on">Selected</st1:PlaceName> <st1:PlaceType
w:st="on">School</st1:PlaceType></st1:place>" STYLE SYMBOL school COLOR
255 125 0 SIZE 20 END LABEL TYPE truetype MINFEATURESIZE 50 MINDISTANCE 0
POSITION UC FONT vera SIZE 7 COLOR 255 125 0 END END END’);<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New"'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Comic Sans MS"><span style='font-size:
12.0pt;font-family:"Comic Sans MS"'>-or-<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New"'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>$class->updateFromString('CLASS
NAME "<st1:place w:st="on"><st1:PlaceName w:st="on">Selected</st1:PlaceName>
<st1:PlaceType w:st="on">School</st1:PlaceType></st1:place>" STYLE SYMBOL
school COLOR 255 125 0 SIZE 20 END LABEL TYPE truetype MINFEATURESIZE 50
MINDISTANCE 0 POSITION UC FONT vera SIZE 7 COLOR 255 125 0 END END'<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New"'>);<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Courier New"><span style='font-size:12.0pt;
font-family:"Courier New"'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Comic Sans MS"><span style='font-size:
12.0pt;font-family:"Comic Sans MS"'>When I tried this, the school symbol for my
point is not used. The points show up as a single orange pixel under the
label. I used<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Comic Sans MS"><span style='font-size:
12.0pt;font-family:"Comic Sans MS"'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Courier New"><span style='font-size:12.0pt;
font-family:"Courier New"'> var_dump($class)</span></font><font
face="Comic Sans MS"><span style='font-family:"Comic Sans MS"'> <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Comic Sans MS"><span style='font-size:
12.0pt;font-family:"Comic Sans MS"'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Comic Sans MS"><span style='font-size:
12.0pt;font-family:"Comic Sans MS"'>and <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Comic Sans MS"><span style='font-size:
12.0pt;font-family:"Comic Sans MS"'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Courier New"><span style='font-size:12.0pt;
font-family:"Courier New"'>$class->symbol = 0<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Courier New"><span style='font-size:12.0pt;
font-family:"Courier New"'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Courier New"><span style='font-size:12.0pt;
font-family:"Courier New"'>$class->symbolname = ‘school’<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Courier New"><span style='font-size:12.0pt;
font-family:"Courier New"'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Comic Sans MS"><span style='font-size:
12.0pt;font-family:"Comic Sans MS"'>This produced the problem result with the
single pixel.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Comic Sans MS"><span style='font-size:
12.0pt;font-family:"Comic Sans MS"'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Comic Sans MS"><span style='font-size:
12.0pt;font-family:"Comic Sans MS"'>When I looked at the other symbols, the
attribute<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Comic Sans MS"><span style='font-size:
12.0pt;font-family:"Comic Sans MS"'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Courier New"><span style='font-size:12.0pt;
font-family:"Courier New"'>$class->symbol = 1<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Comic Sans MS"><span style='font-size:
12.0pt;font-family:"Comic Sans MS"'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Comic Sans MS"><span style='font-size:
12.0pt;font-family:"Comic Sans MS"'>When I set the symbol separately with:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Comic Sans MS"><span style='font-size:
12.0pt;font-family:"Comic Sans MS"'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=3 face="Courier New"><span
style='font-size:12.0pt;font-family:"Courier New"'>$style->set('symbolname',
‘school’);<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Comic Sans MS"><span style='font-size:
12.0pt;font-family:"Comic Sans MS"'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Comic Sans MS"><span style='font-size:
12.0pt;font-family:"Comic Sans MS"'>The symbol attribute is set to 1 and the
symbol is correctly used on the map.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Comic Sans MS"><span style='font-size:
12.0pt;font-family:"Comic Sans MS"'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Comic Sans MS"><span style='font-size:
12.0pt;font-family:"Comic Sans MS"'>Apparently this is a problem with ‘updateFromString’
in PHP mapscript.<o:p></o:p></span></font></p>
</div>
</body>
</html>