Answered my own question using Sean Gillies AWESOME unit tests - again.  <a href="http://kentuckykarst.org/mapserver/mapscript/python/tests/cases/fonttest.py">http://kentuckykarst.org/mapserver/mapscript/python/tests/cases/fonttest.py</a><br>
<br>  title_layer = mapobject.getLayerByName(&quot;title&quot;)<br>  point = mapscript.pointObj(500, 4)<br>  coords = mapscript.lineObj()<br>  coords.add(point)<br>  feature = mapscript.shapeObj(title_layer.type)<br>  feature.add(coords)<br>
  feature.text = title_string<br>  title_layer.addFeature(feature)<br><br>I also had to comment out the FEATURE section of my mapfile, in order to prevent having 2 entries in the resulting map.<br>--<br><br><br><div class="gmail_quote">
On Tue, Feb 24, 2009 at 2:44 PM, Roger André <span dir="ltr">&lt;<a href="mailto:randre@gmail.com">randre@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Everyone,<br><br>A little while ago, Brent Fraser sent me a mapfile snippet that could be used to add a Title to a map using pixel coordinate space.  It looked like this:<br><br><span><span>  LAYER
<br>    NAME title
<br>    STATUS DEFAULT
<br>    TRANSFORM FALSE
<br>    TYPE ANNOTATION
<br><br>    FEATURE
<br>      POINTS 4 396 END
<br>      TEXT &#39;This is a Great Map!&#39;
<br>    END
<br><br>    CLASS
<br>      LABEL
<br>        TYPE TRUETYPE
<br>        FONT arial
<br>        SIZE 8
<br>        ANTIALIAS
<br>        COLOR 255 255 255
<br>        POSITION UR
<br>      END
<br>    END
<br><br>  END
<br></span></span><br>This works well, but I would like to override the TEXT value using mapscript to create new labels that are based on the result of PostGIS queries.  I&#39;ve been picking apart various examples on the web, but can&#39;t seem to come up with the magic sauce.  I can figure out how to grab the layer ByName, but then I&#39;m not quite sure what I need to do in order to access the feature and override the TEXT.<br>

<br>Can someone give me a clue?<br><br>Thanks,<br><font color="#888888"><br>Roger<br>
</font></blockquote></div><br>