Hi,

At the moment that is not possible, but I think it is (still) a good idea. See 
https://www.mail-archive.com/mapserver-dev@lists.osgeo.org/msg00382.html.

-Jukka Rahkonen-


________________________________________
Lähettäjä: Philippe Ghesquiere <philippe.ghesqui...@airbus.com>
Lähetetty: Keskiviikko 4. kesäkuuta 2025 14.38
Vastaanottaja: Rahkonen Jukka <jukka.rahko...@maanmittauslaitos.fi>
Kopio: mapserver-users@lists.osgeo.org <mapserver-users@lists.osgeo.org>
Aihe: Re: [MapServer-users] How to define/declare often used color definitions 
is a "centralized" file

Sorry I was not clear enough.I would like to specify the color value with a 
constant variable defined "somewhere". Something like symbol definitions in a 
file defined by SYMBOLSET.On Wed, Jun 4, 2025 at 1:06 PM Rahkonen Jukka 
<jukka.rahko...@maanmittauslaitos.fi> wrote:Hi,Please clarify what you mean by 
"...COLOR can be defined by either RGB or hexa strings.It can also be defined 
as:   COLOR [MyAttribute] where MyAttribute is an attribute of the processed 
vector objet.In our usecase, this last option does not work.Do you mean that 
you have tried to get the color from an attribute, but it does not work even it 
is documented to work https://mapserver.org/mapfile/style.html.Or do you mean 
that in your project you cannot add a color attribute into you vector 
data?-Jukka Rahkonen-________________________________________Lähettäjä: 
MapServer-users <mapserver-users-boun...@lists.osgeo.org> käyttäjän Philippe 
Ghesquiere via MapServer-users <mapserver-users@lists.osgeo.org> 
puolestaLähetetty: Keskiviikko 4. kesäkuuta 2025 12.22Vastaanottaja: 
mapserver-users@lists.osgeo.org <mapserver-users@lists.osgeo.org>Aihe: 
[MapServer-users] How to define/declare often used color definitions is a 
"centralized" fileDear allI am using SYMBOLSET to define often used symbols in 
my Mapfiles.In our environment, we have a limited set of colors, which are used 
for vector portrayal.For example : Brown1245-21 is defined by #F2E9C4I have 
been looking for a similar way as SYMBOLSET to define "variables" for often 
used colors.I noticed that COLOR can be defined by either RGB or hexa 
strings.It can also be defined as:   COLOR [MyAttribute]where MyAttribute is an 
attribute of the processed vector objet.In our usecase, this last option does 
not work.Is there a way to declare a set of often used colors 
?ThanksPhilippeThe information in this e-mail is confidential. The contents may 
not be disclosed or used by anyone other than the addressee. Access to this 
e-mail by anyone else is unauthorised.If you are not the intended recipient, 
please notify Airbus immediately and delete this e-mail.Airbus cannot accept 
any responsibility for the accuracy or completeness of this e-mail as it has 
been sent over public networks. If you have any concerns over the content of 
this message or its Accuracy or Integrity, please contact Airbus 
immediately.All outgoing e-mails from Airbus are checked using regularly 
updated virus scanning software but you should take whatever measures you deem 
to be appropriate to ensure that this message and any attachments are virus 
free.The information in this e-mail is confidential. The contents may not be 
disclosed or used by anyone other than the addressee. Access to this e-mail by 
anyone else is unauthorised.If you are not the intended recipient, please 
notify Airbus immediately and delete this e-mail.Airbus cannot accept any 
responsibility for the accuracy or completeness of this e-mail as it has been 
sent over public networks. If you have any concerns over the content of this 
message or its Accuracy or Integrity, please contact Airbus immediately.All 
outgoing e-mails from Airbus are checked using regularly updated virus scanning 
software but you should take whatever measures you deem to be appropriate to 
ensure that this message and any attachments are virus free.
_______________________________________________
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to