Sorry! Found it by scroogling a bit:<br><br>Set PROCESSING &quot;LABEL_NO_CLIP=ON&quot; per layer. Everything works now!<br><br><br><br><div class="gmail_quote">2011/2/23 Milo van der Linden <span dir="ltr">&lt;<a href="mailto:milo@dogodigi.net">milo@dogodigi.net</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;">Hi Nicol,<br><br>Excellent! It works! Now I only have one more issue:<br><br><a href="http://www.dogomaps.net/bikkels/index.html?zoom=9&amp;lat=385827.82031&amp;lon=174867.38281&amp;layers=B" target="_blank">http://www.dogomaps.net/bikkels/index.html?zoom=9&amp;lat=385827.82031&amp;lon=174867.38281&amp;layers=B</a><br>


<br>The label is duplicated due to the fact that I am retrieving tiles. Any experience with that?<br><br><div class="gmail_quote">2011/2/23 Nicol Hermann <span dir="ltr">&lt;<a href="mailto:mapserver@geoworld.de" target="_blank">mapserver@geoworld.de</a>&gt;</span><div>

<div></div><div class="h5"><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi Milo,<br>
<br>
Try:<br>
$theme_class[$i]-&gt;settext($v);<br>
<br>
<a href="http://mapserver.org/mapscript/php/index.html#classobj" target="_blank">http://mapserver.org/mapscript/php/index.html#classobj</a><br>
<br>
HTH<br>
Nicol<br>
<br>
<br>
Am Mittwoch, den 23.02.2011, 16:19 +0100 schrieb Milo van der Linden:<br>
<div><div></div><div>&gt; Hello people,<br>
&gt;<br>
&gt; I have created a piece of mapscript that takes a key/value pair and<br>
&gt; creates class-coloring according to this. This works perfectly well<br>
&gt; except for one tiny little thing:<br>
&gt;<br>
&gt; I want to add $v as a label to my classes.<br>
&gt;<br>
&gt; My question is: Is it possible to assign static text to a label?<br>
&gt; Because if it is not; I would have to query the underlying layer for<br>
&gt; it&#39;s centroid and create a text label on top of that layer.<br>
&gt;<br>
&gt; For instance something like:<br>
&gt; $theme_label[$i]-&gt;set(&quot;labeltext&quot;, $v);<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; foreach ($mycollection as $k=&gt;$v) {<br>
&gt;         $theme_class[$i]=ms_newClassObj($theme_layer);<br>
&gt;         $theme_class[$i]-&gt;setExpression($k);<br>
&gt;         $theme_class[$i]-&gt;set(&quot;name&quot;,<br>
&gt; $theme_class[$i]-&gt;getExpressionString());<br>
&gt;         $theme_style[$i]=ms_newStyleObj($theme_class[$i]);<br>
&gt;         $tc = $theme-&gt;getColourValue($v);<br>
&gt;         $theme_style[$i]-&gt;color-&gt;setRGB($tc[0],$tc[1],$tc[2]);<br>
&gt;         $theme_style[$i]-&gt;outlinecolor-&gt;setRGB(255,255,255);<br>
&gt;         //$theme_label[$i]=ms_newLabelObj($theme_class[$i]);<br>
&gt;         //$theme_label[$i]-&gt;set(&quot;font&quot;, &quot;sans&quot;);<br>
&gt;         //$theme_label[$i]-&gt;set(&quot;type&quot;, &quot;truetype&quot;);<br>
&gt;         //$theme_label[$i]-&gt;set(&quot;size&quot;, 10);<br>
&gt;         //$theme_label[$i]-&gt;set(&quot;labeltext&quot;, $v);<br>
&gt;         $i++;<br>
&gt;     }<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; mapserver-users mailing list<br>
&gt; <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
&gt; <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
<br>
<br>
</blockquote></div></div></div><br>
</blockquote></div><div style="margin: 0pt;" name="sig_3ae25cf131"></div><br>