Steve,<br><br>I think however it would be quite an easy to suppress the whichitems functionality for the inline layers and expose msLayerSetItems to the SWIG interface so as to achieve the desired effect.<br><br><br>Best regards,<br>
<br>Tamas<br><br><br><br><br><div class="gmail_quote">2009/1/21 Steve Lime <span dir="ltr">&lt;<a href="mailto:Steve.Lime@dnr.state.mn.us">Steve.Lime@dnr.state.mn.us</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
PG: At this point inline feature can carry no attributes and as a result cannot be<br>
classified. So I don&#39;t think you&#39;re going to be able to make this work. The work<br>
around is to use separate layers for what would have been a class and add<br>
features to the appropriate layer.<br>
<br>
Steve<br>
<br>
&gt;&gt;&gt; On 1/21/2009 at 10:29 AM, in message<br>
&lt;55312.89.97.235.106.1232555376.squirrel@localhost.localdomain&gt;, &quot;Pietro<br>
<div class="Ih2E3d">Giannini&quot; &lt;<a href="mailto:pgiannini@bytewise.it">pgiannini@bytewise.it</a>&gt; wrote:<br>
&gt; Hi all,<br>
&gt;<br>
&gt; I&#39;m working to a c# <a href="http://asp.net" target="_blank">asp.net</a> project embedding a mapscript application.<br>
&gt;<br>
&gt; My attempt is to add dynamically features to a layer object and classify<br>
&gt; them in different colors.<br>
&gt; The features are INLINE features: I don&#39;t add the features to the source<br>
&gt; of the layer.<br>
&gt;<br>
&gt; I&#39;m able to create different classes and styles in the layer, set a field<br>
&gt; as classitem and set an EXPRESSION string to the class.<br>
&gt;<br>
&gt; I found the<br>
&gt; &nbsp; &nbsp; shapeObj.initValues(numOfFields)<br>
&gt; method, which cannot set the field names, only the number, and also the<br>
&gt; &nbsp; &nbsp; shapeObj.setValue(indexOfField, valueAsString)<br>
&gt; for setting the value.<br>
&gt;<br>
&gt; Now I need a field name to set a CLASSITEM property of the layer!!!<br>
&gt; I found no methods to add a named field to the layer.<br>
&gt;<br>
&gt; Maybe I follow a wrong way...<br>
&gt;<br>
&gt; Someone has an idea?<br>
&gt; thanks in advance<br>
&gt; ...........................pg<br>
&gt;<br>
&gt;<br>
<br>
</div><div><div></div><div class="Wj3C7c">_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</div></div></blockquote></div><br>