Hello<br>I&#39;m stuck with this and need advice. I&#39;m working with ms4w version 2.2.3.<br><br>In php mapscript, I&#39;m trying to assign values to attributes of newly created shape objects. However, whatever I do it doesn&#39;t seem to work.
<br><br>First of all shapeobj-&gt;setValue() is not defined:<br><br>$shpn= ms_newShapeObj(MS_SHAPE_POLYGON);<br>$shpn-&gt;setvalue(0,&quot;foobar&quot;);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // &gt;&gt;&gt; php generates error<br><br>Then setting the directly the values array works on the php object:
<br><br>$shpn-&gt;value[0]=&#39;bar&#39;;<br>
$shpn-&gt;value[&#39;foo&#39;]=&#39;bar&#39;;<br>&nbsp;
<br>However changes are never transferred to the actual peer in the layer, as print_r clearly shows:<br><br>.... [values] =&gt; Array
        (
        )

.....<br><br><br>At this point I wonder whether this is possible at all, at least in php-mapscript. If anyone can give me hint it would be very helpful. Even a negative one.<br>TIA<br>F. Antognini<br><br>-- <br>Francesco Antognini
<br>Computer Consultant<br>Switzerland<br><a href="mailto:fantognini@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">fantognini@gmail.com</a>