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> 
puolesta
Lähetetty: Keskiviikko 4. kesäkuuta 2025 12.22
Vastaanottaja: mapserver-users@lists.osgeo.org <mapserver-users@lists.osgeo.org>
Aihe: [MapServer-users] How to define/declare often used color definitions is a 
"centralized" file

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.
_______________________________________________
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to