Prakash,<br><br>Setting the color at class level is deprecated, it internally sets the color of the first style of the class in fact.<br><br>Best regards,<br><br>Tamas<br><br><br><br><div class="gmail_quote">2009/4/16 Prakash Tilhoo <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;">


  
  

<div bgcolor="#ffffff" text="#000000">
Tamas,<br>
<br>
Thank you very much for your usual reply.<br>
<br>
When I do classObj cls = new classObj(layer), I get default Label style
sections created in map file.<div class="im"><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></div>
I understand that <a href="http://cls.name" target="_blank">cls.name</a>
= &quot;Elevation Poly 5&quot;; will give the above, along with other things
mentioned above.<div class="im"><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></div>
Doing <br><div class="im">
<br>
styleObj style = new styleObj(cls);<br>
style.setRGB(255,255,255);<br>
<br></div>
will give something like below in map file:<br>
<br>
STYLEITEM &quot;AUTO&quot;<br>
CLASS<br>
    Style<div class="im"><br>
        color 255 255 255 <br>
        ...<br>
       ...<br>
   END<br>
END<br></div>
END # Layer<br>
<br>
QUESTION:<br>
<br>
Will these additional entries in the map file affect the &#39;mapserver&#39;
rendering or will it be same as it would be with two plain above
examples ?<div><div></div><div class="h5"><br>
<br>
<br>
<br>
Tamas Szekeres wrote:
<blockquote type="cite">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" target="_blank">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" target="_blank">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" target="_blank">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>
</blockquote>
<br>
<br>
</div></div><pre cols="72">-- 
Regards

Prakash Tilhoo


Astun Technology Ltd
Cadogan House, 4-6 High Street
Epsom, Surrey, KT19 8AD, UK
t:+44 1372 440 143</pre>
</div>

</blockquote></div><br>