<!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>
...<br>
CLASSITEM "CLASS"<br>
INCLUDE "path/to/include/file.txt"<br>
END<br>
<br>
Where file.txt would be:<br>
<div>CLASS</div>
<div> EXPRESSION "A"</div>
<div> COLOR "#FF0000"</div>
<div>END</div>
...<br>
<div>CLASS</div>
<div> EXPRESSION "Z"</div>
<div> COLOR "#000000"</div>
<div>END<br>
<br>
Hah, I just saw that I was beaten to this. 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.. </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> LAYER</div>
<div>...</div>
<div>...</div>
<div> CLASSITEM "CLASS"</div>
<div> CLASS</div>
<div> EXPRESSION "A"</div>
<div> COLOR "#FF0000"</div>
<div> END</div>
<div>...</div>
<div>...</div>
<div>...</div>
<div>
CLASS</div>
<div> EXPRESSION "Z"</div>
<div> COLOR "#000000"</div>
<div> END</div>
<div> 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>