OK (ticket : <a href="http://trac.osgeo.org/mapserver/ticket/3175">http://trac.osgeo.org/mapserver/ticket/3175</a>)<br><br>Thank you for information.<br><br>Best regards<br><br><br><div class="gmail_quote">2010/2/17 Alan Boudreault <span dir="ltr">&lt;<a href="mailto:aboudreault@mapgears.com">aboudreault@mapgears.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Robert,<br>
<br>
To change the angle propety to MS_FOLLOW, I think you should use something<br>
like:<br>
<br>
$oLabel-&gt;set(&#39;autoangle&#39;, MS_FALSE);<br>
$oLabel-&gt;set(&#39;autofollow&#39;, MS_FOLLOW);<br>
<br>
Unfortunately, the &quot;autofollow&quot; property in PHP/Mapscript is only available in<br>
MapServer 5.6. If you are building mapserver manually, the following patch<br>
could be easily applied:<br>
<br>
<a href="http://trac.osgeo.org/mapserver/changeset/9493" target="_blank">http://trac.osgeo.org/mapserver/changeset/9493</a><br>
<br>
regards,<br>
Alan<br>
<div><div></div><div class="h5"><br>
On February 17, 2010 05:37:28 am Robert Pivalone wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; I have some troubles with PHP Mapscript (MapServer 5.4.2) and MS_FOLLOW.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; I would like to set the &quot;ANGLE&quot; property of a LabelObj with the value<br>
&gt; &quot;FOLLOW&quot;.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; With the following code :<br>
&gt; $oMap = ms_newMapObj($szMapFile);<br>
&gt; $oLayer = $oMap-&gt;getLayerByName(&quot;layer3&quot;); // type LINE<br>
&gt; $oClass = $oLayer-&gt;getClass(0);<br>
&gt; $oLabel = $oClass-&gt;label;<br>
&gt; $oLabel-&gt;set(&#39;autoangle&#39;, MS_FOLLOW);<br>
&gt; $oMap-&gt;save($szMapFile);<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; In the mapfile, when &quot;ANGLE&quot; property was ANGLE 33 or ANGLE [angle] or<br>
&gt;  ANGLE AUTO, &quot;ANGLE&quot; property doesn&#39;t change. Have you got any idea ?<br>
&gt;<br>
&gt; Many thanks.<br>
&gt;<br>
&gt; Robert<br>
&gt;<br>
<br>
</div></div><font color="#888888">--<br>
Alan Boudreault<br>
Mapgears<br>
<a href="http://www.mapgears.com" target="_blank">http://www.mapgears.com</a><br>
</font></blockquote></div><br>