Hi,<br><br>You can do something like:<br><br>layer.styleitem = &quot;AUTO&quot;;<br>classObj cls = new classObj(layer);<br><a href="http://cls.name">cls.name</a> = &quot;Elevation Poly 5&quot;;<br>styleObj style = new styleObj(cls);<br>
style.setRGB(255,255,255);<br><br><br>Best regards,<br><br>Tamas<br><br><br><br><div class="gmail_quote">2009/4/16 prak <span dir="ltr">&lt;<a href="mailto:prakashtilhoo@astuntechnology.com">prakashtilhoo@astuntechnology.com</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;"><br>
Hello everyone,<br>
<br>
I am using mapscript_csharp to provide user with ability to edit map file.<br>
<br>
However, for a layer with setting &#39;STYLEITEM &quot;AUTO&quot;&#39;, there is no &#39;classobj&#39;, but can have entries in map file that look like;<br>
<br>
1) Example 1<br>
<br>
STYLEITEM &quot;AUTO&quot;<br>
CLASS<br>
        NAME &quot;Elevation Poly 5&quot;<br>
END<br>
END # Layer<br>
<br>
2) Example 2<br>
<br>
STYLEITEM &quot;AUTO&quot;<br>
CLASS<br>
     color 255 255 255<br>
END<br>
END # Layer<br>
<br>
Using map script, if I do classObj ocls = new classObj(layerObj), the map file will get a &#39;class&#39; section, but then how can entries like in above examples be &#39;insertted&#39; using  mapscript_csharp ?<br>
<br>
Look forward to your usual and kind advice and help.<br>
<br>
Kind Regards<br>
<font color="#888888">--<br>
View this message in context: <a href="http://n2.nabble.com/mapscript_csharp%3A-using-STYLEITEM-%22AUTO%22-tp2642811p2642811.html" target="_blank">http://n2.nabble.com/mapscript_csharp%3A-using-STYLEITEM-%22AUTO%22-tp2642811p2642811.html</a><br>

Sent from the Mapserver - Dev mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
mapserver-dev mailing list<br>
<a href="mailto:mapserver-dev@lists.osgeo.org">mapserver-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-dev</a><br>
</font></blockquote></div><br>