<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:o = 
"urn:schemas-microsoft-com:office:office" xmlns:w = 
"urn:schemas-microsoft-com:office:word" xmlns:st1 = 
"urn:schemas-microsoft-com:office:smarttags"><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR><o:SmartTagType 
name="PostalCode" 
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType 
name="State" 
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType 
name="City" 
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType 
name="place" 
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType 
name="Street" 
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType 
name="address" 
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><!--[if !mso]>
<STYLE>st1\:* {
        BEHAVIOR: url(#default#ieooui)
}
</STYLE>
<![endif]-->
<STYLE>@font-face {
        font-family: Trebuchet MS;
}
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
H2 {
        FONT-SIZE: 11pt; MARGIN: 6pt 0in 0pt; COLOR: navy; FONT-FAMILY: "Trebuchet MS"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
        FONT-WEIGHT: normal; COLOR: windowtext; FONT-STYLE: normal; FONT-FAMILY: "Trebuchet MS"; TEXT-DECORATION: none; mso-style-type: personal-compose
}
DIV.Section1 {
        page: Section1
}
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=purple link=blue>
<DIV><SPAN class=090350918-13102006><FONT face=Arial color=#0000ff size=2>Take a 
look at the mapfile documentation for LABEL:&nbsp; <A 
href="http://mapserver.gis.umn.edu/docs/reference/mapfile/label">http://mapserver.gis.umn.edu/docs/reference/mapfile/label</A></FONT></SPAN></DIV>
<DIV><SPAN class=090350918-13102006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=090350918-13102006><FONT face=Arial color=#0000ff 
size=2>WRAP</FONT></SPAN></DIV>
<DIV><SPAN class=090350918-13102006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=090350918-13102006><FONT face=Arial color=#0000ff size=2>You 
can identify a charater that will tell MapServer to WRAP the text.&nbsp; 
</FONT></SPAN></DIV>
<DIV><SPAN class=090350918-13102006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=090350918-13102006><FONT face=Arial color=#0000ff 
size=2>David.</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV></DIV>
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT 
  face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> UMN MapServer 
  Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] <B>On Behalf Of </B>Todd 
  Fagin<BR><B>Sent:</B> Friday, October 13, 2006 12:03 PM<BR><B>To:</B> 
  MAPSERVER-USERS@LISTS.UMN.EDU<BR><B>Subject:</B> [UMN_MAPSERVER-USERS] 
  advanced labelings<BR><BR></FONT></DIV>
  <DIV class=Section1>
  <P class=MsoNormal><FONT face="Trebuchet MS" size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS'">Greetings 
  all,<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Trebuchet MS" size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS'"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Trebuchet MS" size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS'">I am wanting to do some 
  advanced labeling in MapServer and have several 
  questions.<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Trebuchet MS" size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS'"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Trebuchet MS" size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS'">First, if I want to label 
  based on concatenated fields, but on two separate lines. I know I can do 
  something such as the following in my CLASS 
  object:<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Trebuchet MS" size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS'"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Courier New" size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">TEXT 
  ([QDNAME][INDEX_CODE]) <o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Trebuchet MS" size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS'"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Trebuchet MS" size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS'">This, of course, will 
  return labels from both the QDNAME and INDEX_CODE fields, but on a single 
  line.<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Trebuchet MS" size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS'"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Trebuchet MS" size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS'">However, I would like to 
  stake the labels on two lines, e.g.<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Trebuchet MS" size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS'"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Trebuchet MS" size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS'">QDNAME 
  <o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Trebuchet MS" size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS'">INDEX_CODE<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Trebuchet MS" size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS'"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Trebuchet MS" size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS'">Any suggestions on how to 
  do this?<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Trebuchet MS" size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS'"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Trebuchet MS" size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS'">Secondly, I would like to 
  be able to label based on a truncated field.&nbsp; For instance, I would like 
  to have as my label field the first 5 characters of a string, e.g., 
  <o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Trebuchet MS" size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS'"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Trebuchet MS" size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS'">LEFT([QDNAME], 
  5)<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Trebuchet MS" size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS'"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Trebuchet MS" size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS'">Is there a way to do 
  something along these lines without creating a new field in my layer that only 
  contains these characters?<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Trebuchet MS" size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS'"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Trebuchet MS" size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS'">Ultimately, my goal is to 
  be able to stack a single label field into two lines.&nbsp; So, if my 
  attribute value is 1000-5142, I would like my label to look 
  like:<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Trebuchet MS" size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS'"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Trebuchet MS" size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS'">1000-<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Trebuchet MS" size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS'">5142.<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Trebuchet MS" size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS'"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Trebuchet MS" size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS'">Any suggestions or 
  pointers would be greatly appreciated.&nbsp; I have yet to find anything in 
  the archives that would assist me in this matter.<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Trebuchet MS" size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS'"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Trebuchet MS" size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS'">Thanks in 
  advance.<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Trebuchet MS" size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: 'Trebuchet MS'"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <DIV>
  <DIV>
  <P class=MsoNormal><FONT face="Trebuchet MS" color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: 'Trebuchet MS'">Todd 
  Fagin<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P></DIV>
  <P class=MsoNormal><FONT face="Trebuchet MS" color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: 'Trebuchet MS'">Coordinate 
  Solutions, Inc.<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal><st1:Street w:st="on"><st1:address w:st="on"><FONT 
  face="Trebuchet MS" color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: 'Trebuchet MS'">501 N.E. 
  15th St</SPAN></FONT></st1:address></st1:Street><FONT face="Trebuchet MS" 
  color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: 'Trebuchet MS'">.<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal><st1:place w:st="on"><st1:City w:st="on"><FONT 
  face="Trebuchet MS" color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: 'Trebuchet MS'">Oklahoma 
  City</SPAN></FONT></st1:City><FONT face="Trebuchet MS" color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: 'Trebuchet MS'">, <st1:State 
  w:st="on">OK</st1:State> <st1:PostalCode 
  w:st="on">73104</st1:PostalCode></SPAN></FONT></st1:place><FONT 
  face="Trebuchet MS" color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: 'Trebuchet MS'"><o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal><FONT face="Trebuchet MS" color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: 'Trebuchet MS'">405.246.9396 
  (Voice)<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal><FONT face="Trebuchet MS" color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: 'Trebuchet MS'">405.227.0781 
  (Fax)<o:p></o:p></SPAN></FONT></P></DIV></DIV></BLOCKQUOTE></BODY></HTML>