<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v = 
"urn:schemas-microsoft-com:vml" xmlns:o = 
"urn:schemas-microsoft-com:office:office" xmlns:w = 
"urn:schemas-microsoft-com:office:word"><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16735" name=GENERATOR><!--[if !mso]>
<STYLE>v\:* {
        BEHAVIOR: url(#default#VML)
}
o\:* {
        BEHAVIOR: url(#default#VML)
}
w\:* {
        BEHAVIOR: url(#default#VML)
}
.shape {
        BEHAVIOR: url(#default#VML)
}
</STYLE>
<![endif]-->
<STYLE>@font-face {
        font-family: Tahoma;
}
@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; COLOR: black; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; COLOR: black; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; COLOR: black; FONT-FAMILY: "Times New Roman"
}
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
}
PRE {
        FONT-SIZE: 10pt; MARGIN: 0in 0in 0pt; COLOR: black; FONT-FAMILY: "Courier New"
}
SPAN.EmailStyle17 {
        COLOR: windowtext; FONT-FAMILY: Arial; mso-style-type: personal
}
SPAN.EmailStyle19 {
        COLOR: navy; FONT-FAMILY: Arial; mso-style-type: personal-reply
}
DIV.Section1 {
        page: Section1
}
</STYLE>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]--></HEAD>
<BODY lang=EN-US vLink=purple link=blue bgColor=white>
<DIV><SPAN class=505244019-31102008><FONT face=Arial color=#0000ff 
size=2>Nelson, </FONT></SPAN></DIV>
<DIV><SPAN class=505244019-31102008><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=505244019-31102008><FONT face=Arial color=#0000ff size=2>For 
the inline feature example.&nbsp; If you do it in a layer of type annotation, 
you only get the label.&nbsp; See the mapfile example at the end of this 
message.&nbsp; </FONT></SPAN></DIV>
<DIV><SPAN class=505244019-31102008><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=505244019-31102008><FONT face=Arial color=#0000ff size=2>For 
the second example, let's say that you wanted to label county polygons, but you 
didn't like where MapServer was putting them.&nbsp; You would use some sort of 
desktop GIS to create points at the locations where you want to put your 
labels.&nbsp; In this point data set, you also include an attribute that 
contains your label text.&nbsp; You then create a map file with your polygon 
layer and also an annotation layer that uses your point data set as the data 
source.&nbsp; You build the labels in the annotation layer.&nbsp; Your polygon 
geometries will show, and the labels, not the point geometries from the 
annotation layer will show up.&nbsp; In this case, you are not building the 
points on the fly.&nbsp; </FONT></SPAN></DIV>
<DIV><SPAN class=505244019-31102008><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=505244019-31102008><FONT face=Arial color=#0000ff size=2>If you 
are asking if you can set the label position using an attribute in the table to 
set the label position of individual features (ll, cc, ul, etc), not according 
to the documentation.&nbsp; You can use attribute binding to set the label 
color, outlinecolor, angle, or size, but not apparently position.&nbsp; <A 
href="http://mapserver.gis.umn.edu/docs/reference/mapfile/label">http://mapserver.gis.umn.edu/docs/reference/mapfile/label</A>&nbsp; 
Of course, if I was creating a point layer to use as label points, I would set 
the point position assuming that I was going to center the label on the 
point.</FONT></SPAN></DIV>
<DIV><SPAN class=505244019-31102008><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=505244019-31102008><FONT face=Arial color=#0000ff 
size=2>David.</FONT></SPAN></DIV>
<DIV><SPAN class=505244019-31102008><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=505244019-31102008><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=505244019-31102008><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=505244019-31102008><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=505244019-31102008><FONT face=Arial color=#0000ff 
size=2>__________________________________________</FONT></SPAN></DIV>
<DIV><SPAN class=505244019-31102008><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=505244019-31102008><FONT face=Arial color=#0000ff 
size=2>MAP</FONT></SPAN></DIV>
<DIV>&nbsp;</DIV>
<DIV><SPAN class=505244019-31102008><FONT face=Arial color=#0000ff size=2>&nbsp; 
NAME 'hello_world'<BR>&nbsp; SIZE 500 500<BR>&nbsp; IMAGECOLOR 143 188 
143<BR>&nbsp; EXTENT&nbsp; -200 -200 200 200<BR>&nbsp; <BR>LAYER<BR>&nbsp;NAME 
"howdy"<BR>&nbsp;STATUS DEFAULT<BR>&nbsp;TYPE 
ANNOTATION<BR>&nbsp;FEATURE<BR>&nbsp;&nbsp;POINTS<BR>&nbsp;&nbsp;&nbsp;0 
0<BR>&nbsp;&nbsp;END<BR>&nbsp;&nbsp;TEXT 'Hello 
World'<BR>&nbsp;END<BR>&nbsp;CLASS<BR>&nbsp;&nbsp;LABEL<BR>&nbsp;&nbsp;&nbsp;TYPE 
BITMAP<BR>&nbsp;&nbsp;&nbsp;COLOR 0 0 
0<BR>&nbsp;&nbsp;END<BR>&nbsp;END<BR>END&nbsp;&nbsp;<BR>&nbsp; 
</FONT></SPAN></DIV>
<DIV>&nbsp;</DIV>
<DIV><SPAN class=505244019-31102008><FONT face=Arial color=#0000ff 
size=2>END&nbsp; # end of map</FONT></SPAN></DIV>
<DIV>&nbsp;</DIV>
<DIV><SPAN class=505244019-31102008><FONT face=Arial color=#0000ff size=2># URL 
to call map:&nbsp; <A 
href="http://localhost/cgi-bin/mapserv.exe?mode=map&amp;map=/ms4w/apps/workshop08/helloworld.map">http://localhost/cgi-bin/mapserv.exe?mode=map&amp;map=/ms4w/apps/workshop08/helloworld.map</A></FONT></SPAN></DIV>
<DIV><SPAN class=505244019-31102008><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=505244019-31102008><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=505244019-31102008><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</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> Nelson Soto 
  [mailto:NSoto@plotplans.com] <BR><B>Sent:</B> Friday, October 31, 2008 1:57 
  PM<BR><B>To:</B> Fawcett, David; Daniel Degasperi<BR><B>Cc:</B> 
  mapserver-users@lists.osgeo.org<BR><B>Subject:</B> RE: [mapserver-users] 
  Labelling<BR><BR></FONT></DIV>
  <DIV class=Section1>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Thanks Dave and 
  Dan,<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>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Pretty much both of 
  you are kind of getting at the same ideas I had. I guess I asked in an 
  ambiguous way because it doesn&#8217;t pertain to a specific situation. The point 
  layer specific for labeling I think it the way I&#8217;ll have to go but David did 
  touch on something interesting that I wasn&#8217;t sure you could 
  do:<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>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">On your first 
  suggestion, are you saying I could create a point feature and label it using 
  &#8216;TEXT&#8217;? If so, can I do this without having the point be visible? Then you 
  mention I could use an annotation type layer instead. Does the same apply as 
  far as being able to specify x and y cords and use a &#8216;TEXT&#8217; clock to label? If 
  so then that is an interesting feature!<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>
  <DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT 
  face="Times New Roman" color=black size=3><SPAN 
  style="FONT-SIZE: 12pt; COLOR: windowtext">
  <HR tabIndex=-1 align=center width="100%" SIZE=2>
  </SPAN></FONT></DIV>
  <P class=MsoNormal><B><FONT face=Tahoma color=black size=2><SPAN 
  style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: windowtext; FONT-FAMILY: Tahoma">From:</SPAN></FONT></B><FONT 
  face=Tahoma color=black size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: windowtext; FONT-FAMILY: Tahoma"> Fawcett, 
  David [mailto:David.Fawcett@state.mn.us] <BR><B><SPAN 
  style="FONT-WEIGHT: bold">Sent:</SPAN></B> Friday, October 31, 2008 1:18 
  PM<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> Daniel Degasperi; 
  Nelson Soto<BR><B><SPAN style="FONT-WEIGHT: bold">Cc:</SPAN></B> 
  mapserver-users@lists.osgeo.org<BR><B><SPAN 
  style="FONT-WEIGHT: bold">Subject:</SPAN></B> RE: [mapserver-users] 
  Labelling</SPAN></FONT><FONT color=black><SPAN 
  style="COLOR: windowtext"><o:p></o:p></SPAN></FONT></P></DIV>
  <P class=MsoNormal><FONT face="Times New Roman" color=black size=3><SPAN 
  style="FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <DIV>
  <P class=MsoNormal><FONT face=Arial color=blue size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">It isn't exactly 
  clear to me what you are trying to accomplish Nelson.&nbsp; I see two 
  possibilities:</SPAN></FONT><o:p></o:p></P></DIV>
  <DIV>
  <P class=MsoNormal><FONT face="Times New Roman" color=black size=3><SPAN 
  style="FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal><FONT face=Arial color=blue size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">a.&nbsp; If you want 
  to create a label&nbsp;that is independent from the features in your data set, 
  you can create a class with an inline&nbsp;feature, setting the x and y 
  coords, and using 'text' to specify what the label text should 
  be.&nbsp;&nbsp;You could even create this labeled feature on the fly by 
  passing this info in as a URL configuration.&nbsp; If you just want to show 
  the label, you could do this in an&nbsp;annotation layer instead of a 
  point/poly/line layer.&nbsp; </SPAN></FONT><o:p></o:p></P></DIV>
  <DIV>
  <P class=MsoNormal><FONT face="Times New Roman" color=black size=3><SPAN 
  style="FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal><FONT face=Arial color=blue size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">b.&nbsp; If you want 
  to specify label points for your a point/poly/line layer, you could create a 
  point dataset of your label points and then use that as the basis of an 
  annotation layer </SPAN></FONT><o:p></o:p></P></DIV>
  <DIV>
  <P class=MsoNormal><FONT face="Times New Roman" color=black size=3><SPAN 
  style="FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal><FONT face=Arial color=blue size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">With either of these 
  methods, you could either specify the label position to a fixed location, like 
  the center, or upper left position, or you could use auto and let MapServer 
  find the best position for it.</SPAN></FONT><o:p></o:p></P></DIV>
  <DIV>
  <P class=MsoNormal><FONT face="Times New Roman" color=black size=3><SPAN 
  style="FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal><FONT face=Arial color=blue size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">David.&nbsp; 
  </SPAN></FONT><o:p></o:p></P></DIV>
  <BLOCKQUOTE style="MARGIN-TOP: 5pt; MARGIN-BOTTOM: 5pt; MARGIN-RIGHT: 0in">
    <P class=MsoNormal style="MARGIN-BOTTOM: 12pt"><FONT face=Tahoma color=black 
    size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">-----Original 
    Message-----<BR><B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> 
    mapserver-users-bounces@lists.osgeo.org 
    [mailto:mapserver-users-bounces@lists.osgeo.org] <B><SPAN 
    style="FONT-WEIGHT: bold">On Behalf Of </SPAN></B>Daniel 
    Degasperi<BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Friday, 
    October 31, 2008 11:07 AM<BR><B><SPAN 
    style="FONT-WEIGHT: bold">To:</SPAN></B> Nelson Soto<BR><B><SPAN 
    style="FONT-WEIGHT: bold">Cc:</SPAN></B> 
    mapserver-users@lists.osgeo.org<BR><B><SPAN 
    style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [mapserver-users] 
    Labelling</SPAN></FONT><o:p></o:p></P>
    <P class=MsoNormal><FONT face="Times New Roman" color=black size=3><SPAN 
    style="FONT-SIZE: 12pt">Hi,<BR><BR>you can't give some coordinates to your 
    label. I solved the problem by creating a point layer.<BR><BR><BR><BR>Nelson 
    Soto schrieb: <o:p></o:p></SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial color=black size=2><SPAN 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Is it possible to create a label 
    and position it with given coordinates? If I do not like the positioning of 
    the labels, can I in any way specify my 
    own?<O:P></O:P></SPAN></FONT><o:p></o:p></P><PRE style="TEXT-ALIGN: center" wrap=""><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt">

<HR align=center width="90%" SIZE=4>

</SPAN></FONT></PRE><PRE><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt"><o:p>&nbsp;</o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt">_______________________________________________<o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt">mapserver-users mailing list<o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt"><A href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</A><o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt"><A href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</A><o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt">&nbsp; <o:p></o:p></SPAN></FONT></PRE>
    <P class=MsoNormal><FONT face="Times New Roman" color=black size=3><SPAN 
    style="FONT-SIZE: 12pt"><BR><BR><BR><o:p></o:p></SPAN></FONT></P><PRE><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt">-- <o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt">&nbsp;&nbsp;Daniel Degasperi<o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt">&nbsp; Software Developer<o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt">&nbsp; <A href="mailto:daniel.degasperi@r3-gis.com">daniel.degasperi@r3-gis.com</A><o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt">&nbsp; <o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt">---------------------------<o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt">&nbsp; R3 GIS Srl<o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt">&nbsp; Via Johann Kravogl 2<o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt">&nbsp; I-39010 Merano - Sinigo (BZ)<o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt">&nbsp; Tel. +39 0473 494949<o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt">&nbsp; Fax. +39 0473 069902<o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt">&nbsp; Web&nbsp; <A href="http://www.r3-gis.com">http://www.r3-gis.com</A><o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt">-----------------------------<o:p></o:p></SPAN></FONT></PRE></BLOCKQUOTE></DIV></BLOCKQUOTE></BODY></HTML>