<!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">
    Hi,<br>
    <br>
    You should be able to use an INCLUDE (see <a
      href="http://mapserver.org/mapfile/Include.html">http://mapserver.org/mapfile/Include.html</a>)
    that contains the classes. E.g.:<br>
    <br>
    LAYER<br>
    &nbsp; ...<br>
    &nbsp; CLASSITEM "CLASS"<br>
    &nbsp; INCLUDE "path/to/include/file.txt"<br>
    END<br>
    <br>
    Where file.txt would be:<br>
    <div>CLASS</div>
    <div>&nbsp; EXPRESSION "A"</div>
    <div>&nbsp; COLOR "#FF0000"</div>
    <div>END</div>
    ...<br>
    <div>CLASS</div>
    <div>&nbsp; EXPRESSION "Z"</div>
    <div>&nbsp; COLOR "#000000"</div>
    <div>END<br>
      <br>
      Hah, I just saw that I was beaten to this.&nbsp; Sent anyway to provide
      the example.<br>
      <br>
      Christy<br>
    </div>
    <br>
    <br>
    On 11/04/2010 07:55 AM, Sebastian E. Ovide wrote:
    <blockquote
      cite="mid:AANLkTi=jA-GXewCCR=_mqjzjyA7afMnA4b8wzWOSiN6J@mail.gmail.com"
      type="cite">
      <div>Hi All,</div>
      <div><br>
      </div>
      <div>I have a lot of layers that are displayed using the same
        colors. If I need to change a color for, I have to go trough all
        the layers, one by one, and change all the colors..&nbsp;</div>
      <div>
        <br>
      </div>
      <div>Is there any way to define a CLASS (or a THEME ??) and just
        use it within all the layers that share that class ?</div>
      <div><br>
      </div>
      <div>This is what I have:</div>
      <div><br>
      </div>
      <div>&nbsp;&nbsp;LAYER</div>
      <div>...</div>
      <div>...</div>
      <div>&nbsp;&nbsp; &nbsp;CLASSITEM "CLASS"</div>
      <div>&nbsp;&nbsp; &nbsp;CLASS</div>
      <div>&nbsp;&nbsp; &nbsp; &nbsp;EXPRESSION "A"</div>
      <div>&nbsp;&nbsp; &nbsp; &nbsp;COLOR "#FF0000"</div>
      <div>&nbsp;&nbsp; &nbsp;END</div>
      <div>...</div>
      <div>...</div>
      <div>...</div>
      <div>
        &nbsp;&nbsp; &nbsp;CLASS</div>
      <div>&nbsp;&nbsp; &nbsp; &nbsp;EXPRESSION "Z"</div>
      <div>&nbsp;&nbsp; &nbsp; &nbsp;COLOR "#000000"</div>
      <div>&nbsp;&nbsp; &nbsp;END</div>
      <div>&nbsp;&nbsp;END</div>
      <div><br>
      </div>
      Thanks<br>
      -- <br>
      Sebastian E. Ovide<br>
      <br>
      <br>
      <br>
      <br>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
mapserver-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a>
</pre>
    </blockquote>
  </body>
</html>