[mapserver-users] layers sharing the same class ?

2010-11-04 Thread Sebastian E. Ovide
Hi All,

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..

Is there any way to define a CLASS (or a THEME ??) and just use it within
all the layers that share that class ?

This is what I have:

  LAYER
...
...
CLASSITEM CLASS
CLASS
  EXPRESSION A
  COLOR #FF
END
...
...
...
CLASS
  EXPRESSION Z
  COLOR #00
END
  END

Thanks
-- 
Sebastian E. Ovide
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] layers sharing the same class ?

2010-11-04 Thread Rahkonen Jukka
Hi,
 
I believe that INCLUDE works everywhere.  Store your class on a disk as a text 
file and point to it with INCLUDE.
 
-Jukka Rahkonen-




Lähettäjä: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta Sebastian E. Ovide
Lähetetty: 4. marraskuuta 2010 13:56
Vastaanottaja: mapserver-users@lists.osgeo.org
Aihe: [mapserver-users] layers sharing the same class ?


Hi All,

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.. 

Is there any way to define a CLASS (or a THEME ??) and just use it 
within all the layers that share that class ?

This is what I have:

  LAYER
...
...
CLASSITEM CLASS
CLASS
  EXPRESSION A
  COLOR #FF
END
...
...
...
CLASS
  EXPRESSION Z
  COLOR #00
END
  END

Thanks
-- 
Sebastian E. Ovide






___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] layers sharing the same class ?

2010-11-04 Thread Christy Nieman

 Hi,

You should be able to use an INCLUDE (see 
http://mapserver.org/mapfile/Include.html) that contains the classes. E.g.:


LAYER
  ...
  CLASSITEM CLASS
  INCLUDE path/to/include/file.txt
END

Where file.txt would be:
CLASS
  EXPRESSION A
  COLOR #FF
END
...
CLASS
  EXPRESSION Z
  COLOR #00
END

Hah, I just saw that I was beaten to this.  Sent anyway to provide the 
example.


Christy


On 11/04/2010 07:55 AM, Sebastian E. Ovide wrote:

Hi All,

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..


Is there any way to define a CLASS (or a THEME ??) and just use it 
within all the layers that share that class ?


This is what I have:

  LAYER
...
...
CLASSITEM CLASS
CLASS
  EXPRESSION A
  COLOR #FF
END
...
...
...
CLASS
  EXPRESSION Z
  COLOR #00
END
  END

Thanks
--
Sebastian E. Ovide





___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users