<div dir="ltr">Sorry I was not clear enough.<div>I would like to specify the color value with a constant variable defined "somewhere". Something like symbol definitions in a file defined by SYMBOLSET.</div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Wed, Jun 4, 2025 at 1:06 PM Rahkonen Jukka <<a href="mailto:jukka.rahkonen@maanmittauslaitos.fi">jukka.rahkonen@maanmittauslaitos.fi</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
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.<br>
<br>
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 <br>
<a href="https://mapserver.org/mapfile/style.html" rel="noreferrer" target="_blank">https://mapserver.org/mapfile/style.html</a>.<br>
Or do you mean that in your project you cannot add a color attribute into you vector data?<br>
<br>
-Jukka Rahkonen-<br>
<br>
<br>
________________________________________<br>
Lähettäjä: MapServer-users <<a href="mailto:mapserver-users-bounces@lists.osgeo.org" target="_blank">mapserver-users-bounces@lists.osgeo.org</a>> käyttäjän Philippe Ghesquiere via MapServer-users <<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a>> puolesta<br>
Lähetetty: Keskiviikko 4. kesäkuuta 2025 12.22<br>
Vastaanottaja: <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a> <<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a>><br>
Aihe: [MapServer-users] How to define/declare often used color definitions is a "centralized" file<br>
<br>
Dear 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.</blockquote></div>
<font style="font-size: 9px;">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.<br>If you are not the intended recipient, please notify Airbus immediately and delete this e-mail.<br>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.<br>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.</font>