<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body 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.<br>
<br>
1) Example 1<br>
<br>
STYLEITEM "AUTO"<br>
CLASS<br>
&nbsp; &nbsp; &nbsp; &nbsp;NAME "Elevation Poly 5"<br>
END<br>
END # Layer<br>
<br>
I understand that <a moz-do-not-send="true" href="http://cls.name">cls.name</a>
= "Elevation Poly 5"; will give the above, along with other things
mentioned above.<br>
<br>
2) Example 2<br>
<br>
STYLEITEM "AUTO"<br>
CLASS<br>
&nbsp; &nbsp; color 255 255 255<br>
END<br>
END # Layer<br>
<br>
Doing <br>
<br>
styleObj style = new styleObj(cls);<br>
style.setRGB(255,255,255);<br>
<br>
will give something like below in map file:<br>
<br>
STYLEITEM "AUTO"<br>
CLASS<br>
&nbsp;&nbsp;&nbsp; Style<br>
&nbsp; &nbsp; &nbsp;&nbsp;&nbsp; color 255 255 255 <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ...<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ...<br>
&nbsp;&nbsp; END<br>
END<br>
END # Layer<br>
<br>
QUESTION:<br>
<br>
Will these additional entries in the map file affect the 'mapserver'
rendering or will it be same as it would be with two plain above
examples ?<br>
<br>
<br>
<br>
Tamas Szekeres wrote:
<blockquote
 cite="mid:f3b73b7d0904160858x32d02ae1h9c0bc92bb9552b5e@mail.gmail.com"
 type="cite">Hi,<br>
  <br>
You can do something like:<br>
  <br>
layer.styleitem = "AUTO";<br>
classObj cls = new classObj(layer);<br>
  <a moz-do-not-send="true" href="http://cls.name">cls.name</a> =
"Elevation Poly 5";<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
 moz-do-not-send="true" 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 'STYLEITEM "AUTO"', there is no
'classobj', but can have entries in map file that look like;<br>
    <br>
1) Example 1<br>
    <br>
STYLEITEM "AUTO"<br>
CLASS<br>
&nbsp; &nbsp; &nbsp; &nbsp;NAME "Elevation Poly 5"<br>
END<br>
END # Layer<br>
    <br>
2) Example 2<br>
    <br>
STYLEITEM "AUTO"<br>
CLASS<br>
&nbsp; &nbsp; 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 'class' section, but then how can entries like in
above examples be 'insertted' using &nbsp;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 moz-do-not-send="true"
 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 moz-do-not-send="true"
 href="mailto:mapserver-dev@lists.osgeo.org">mapserver-dev@lists.osgeo.org</a><br>
    <a moz-do-not-send="true"
 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>
<pre class="moz-signature" 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>
</body>
</html>