<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="ProgId" content="Word.Document"><meta name="Generator" content="Microsoft Word 12"><meta name="Originator" content="Microsoft Word 12"><link rel="File-List" href="file:///C:%5CUsers%5CRG5EA2%7E1.OLY%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml"><link rel="themeData" href="file:///C:%5CUsers%5CRG5EA2%7E1.OLY%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx"><link rel="colorSchemeMapping" href="file:///C:%5CUsers%5CRG5EA2%7E1.OLY%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml"><style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;
        mso-font-charset:1;
        mso-generic-font-family:roman;
        mso-font-format:other;
        mso-font-pitch:variable;
        mso-font-signature:0 0 0 0 0 0;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;
        mso-font-charset:0;
        mso-generic-font-family:swiss;
        mso-font-pitch:variable;
        mso-font-signature:-520092929 1073786111 9 0 415 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {mso-style-unhide:no;
        mso-style-qformat:yes;
        mso-style-parent:"";
        margin:0cm;
        margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        mso-fareast-font-family:Calibri;
        mso-fareast-theme-font:minor-latin;}
.MsoChpDefault
        {mso-style-type:export-only;
        mso-default-props:yes;
        font-size:10.0pt;
        mso-ansi-font-size:10.0pt;
        mso-bidi-font-size:10.0pt;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;
        mso-header-margin:36.0pt;
        mso-footer-margin:36.0pt;
        mso-paper-source:0;}
div.Section1
        {page:Section1;}
-->
</style>

<p class="MsoNormal"><span style="font-size: 10pt;">Hi,<br>
<br>
I have some troubles with PHP Mapscript (MapServer 5.4.2) and MS_FOLLOW.</span><span style=""></span></p>

<p class="MsoNormal"><span style=""> </span></p>

<p class="MsoNormal"><span style="font-size: 10pt;">I
would like to set the &quot;ANGLE&quot; property of a LabelObj with the value
&quot;FOLLOW&quot;. </span><span style=""></span></p>

<p class="MsoNormal"><span style=""> </span></p>

<p class="MsoNormal"><span style="font-size: 10pt;">With
the following code :<br>
$oMap = ms_newMapObj($szMapFile);<br>
$oLayer = $oMap-&gt;getLayerByName(&quot;layer3&quot;); // type LINE<br>
$oClass = $oLayer-&gt;getClass(0);<br>
$oLabel = $oClass-&gt;label;<br>
$oLabel-&gt;set(&#39;autoangle&#39;, MS_FOLLOW);<br>
$oMap-&gt;save($szMapFile);</span><span style=""></span></p>

<p class="MsoNormal"><span style=""> </span></p>

<p class="MsoNormal"><span style="font-size: 10pt;">In
the mapfile, when &quot;ANGLE&quot; property was ANGLE 33 or ANGLE [angle] or
ANGLE AUTO, &quot;ANGLE&quot; property doesn&#39;t change. Have you got any idea ?<br>
 <br>
Many thanks.<br>
 <br>
Robert</span><span style=""></span></p>