<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<STYLE type=text/css>P.MsoNormal {
        MARGIN: 0px
}
P.MsoNoSpacing {
        MARGIN: 0px
}
</STYLE>

<META name=GENERATOR content="MSHTML 11.00.10570.1001"></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=255125420-28032024><FONT color=#000080 
size=2 face=Arial>Thanks,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=255125420-28032024><FONT color=#000080 
size=2 face=Arial>looks like it.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=255125420-28032024><FONT color=#000080 
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=255125420-28032024><FONT color=#000080 
size=2 face=Arial>In QGIS setting color and opacity plus stroke does only work 
if the *.svg is edited to allow by setting variables such as these 
below:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=255125420-28032024><FONT color=#000080 
size=2 face=Arial>style="fill:param(fill) 
#000000;fill-opacity:1;stroke:param(outline) 
#000000;stroke-width:param(stroke-width) 1;fill-opacity:param(fill-opacity) 
1;stroke-opacity:param(outline-opacity) "</FONT></SPAN></DIV>
<DIV><SPAN class=255125420-28032024></SPAN><FONT face=Arial><FONT 
color=#000080><FONT size=2></FONT></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT color=#000080><FONT 
size=2>I guess a simple approach could be to allow setting colors for svgs in MapServer if the svg has the style color set to</FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#000080><FONT size=2>fill="currentColor"<SPAN 
class=255125420-28032024> </SPAN></FONT></FONT></FONT></DIV>
<DIV><SPAN class=255125420-28032024></SPAN><SPAN 
class=255125420-28032024></SPAN><FONT face=Arial><FONT color=#000080><FONT 
size=2><SPAN class=255125420-28032024>in order to</SPAN><SPAN 
class=255125420-28032024> be styled </SPAN></FONT></FONT></FONT><BR></DIV>
<DIV><SPAN class=255125420-28032024><FONT color=#000080 size=2 face=Arial>For 
now seems that MapServer vector symbols seem to be the way to 
go </FONT></SPAN></DIV>
<DIV><SPAN class=255125420-28032024><FONT color=#000080 size=2 
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=255125420-28032024><FONT color=#000080 size=2 
face=Arial>Cheers</FONT></SPAN></DIV>
<DIV><SPAN class=255125420-28032024><FONT color=#000080 size=2 
face=Arial>Karsten</FONT> </SPAN></DIV>
<DIV lang=en-us class=OutlookMessageHeader dir=ltr align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>From:</B> Seth G [mailto:sethg@geographika.co.uk] 
<BR><B>Sent:</B> Thursday, March 28, 2024 00:06<BR><B>To:</B> karsten; MapServer 
Users<BR><B>Subject:</B> Re: [MapServer-users] setting COLOR of SVG symbol 
?<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV>Hi,<BR></DIV>
<DIV><BR></DIV>
<DIV>Unfortunately, I don't think this is currently possible, based on a 
previous reply from Steve Lime [1]:<BR></DIV>
<DIV><BR></DIV><PRE>> I don't believe you can muck with the SVG color since SVG can carry multiple elements and colors. That complexity doesn't map very well to a single color value in a styleObj. It's probably best to consider SVG as immutable, same as an image symbol. You can use truetype fonts (or vector symbols) if you want something scaleable where you can alter color.<BR></PRE>
<DIV><BR></DIV>
<DIV>I guess if it works in QGIS then it should be possible to implement this in 
the MapServer codebase too. <BR></DIV>
<DIV><BR></DIV>
<DIV>Seth<BR></DIV>
<DIV><BR></DIV>
<DIV>[1] <A 
href="https://lists.osgeo.org/pipermail/mapserver-users/2019-June/081218.html">https://lists.osgeo.org/pipermail/mapserver-users/2019-June/081218.html</A><BR></DIV>
<DIV><BR></DIV>
<DIV id=sig62266145>
<DIV class=signature>--<BR></DIV>
<DIV class=signature>web:<A 
href="https://geographika.net">https://geographika.net</A> & <A 
href="https://mapserverstudio.net">https://mapserverstudio.net</A><BR></DIV>
<DIV class=signature>twitter: @geographika<BR></DIV></DIV>
<DIV><BR></DIV>
<DIV>On Wed, Mar 27, 2024, at 10:45 PM, karsten via MapServer-users 
wrote:<BR></DIV>
<BLOCKQUOTE id=qt type="cite">
  <DIV><SPAN class=qt-207164021-27032024><SPAN class=font 
  style="FONT-FAMILY: Arial"><SPAN class=size style="FONT-SIZE: 13px"><SPAN 
  class=color style="COLOR: rgb(0,0,128)">Hi 
  All,</SPAN></SPAN></SPAN></SPAN><BR></DIV>
  <DIV><SPAN class=qt-207164021-27032024><SPAN class=font 
  style="FONT-FAMILY: Arial"><SPAN class=size style="FONT-SIZE: 13px"><SPAN 
  class=color 
  style="COLOR: rgb(0,0,128)"></SPAN></SPAN></SPAN></SPAN><BR> </DIV>
  <DIV><SPAN class=font style="FONT-FAMILY: Arial"><SPAN class=color 
  style="COLOR: rgb(0,0,128)"><SPAN class=size style="FONT-SIZE: 13px"><SPAN 
  class=qt-207164021-27032024>for the f</SPAN>irst time trying to use svg 
  symbols for a layer. The svgs I am using can be styled in QGIS (have edited to 
  allow). <BR>What is the status in MapServer should setting  the 
  color<SPAN class=qt-207164021-27032024> via a style</SPAN> work 
  ? <BR><SPAN class=qt-207164021-27032024><BR>I had n</SPAN>o 
  luck setting the COLOR on the symbol so far<BR><BR><SPAN 
  class=qt-207164021-27032024>Here is my style</SPAN></SPAN></SPAN></SPAN></DIV>
  <DIV><SPAN class=qt-207164021-27032024><SPAN class=font 
  style="FONT-FAMILY: Arial"><SPAN class=size style="FONT-SIZE: 13px"><SPAN 
  class=color 
  style="COLOR: rgb(0,0,128)"></SPAN></SPAN></SPAN></SPAN><BR> </DIV>
  <DIV><SPAN class=qt-207164021-27032024><SPAN class=font 
  style="FONT-FAMILY: Arial"><SPAN class=size style="FONT-SIZE: 13px"><SPAN 
  class=color style="COLOR: rgb(0,0,128)">     
  STYLE<BR>       SYMBOL 
  "electric_point"<BR>       SIZE 
  20<BR>       COLOR 255 0 
  0<BR>     END # 
  STYLE </SPAN></SPAN></SPAN></SPAN></DIV>
  <DIV><SPAN class=qt-207164021-27032024><SPAN class=font 
  style="FONT-FAMILY: Arial"><SPAN class=size style="FONT-SIZE: 13px"><SPAN 
  class=color 
  style="COLOR: rgb(0,0,128)"></SPAN></SPAN></SPAN></SPAN><BR> </DIV>
  <DIV><SPAN class=qt-207164021-27032024><SPAN class=font 
  style="FONT-FAMILY: Arial"><SPAN class=size style="FONT-SIZE: 13px"><SPAN 
  class=color 
  style="COLOR: rgb(0,0,128)">symbol</SPAN></SPAN></SPAN></SPAN><BR></DIV>
  <DIV><SPAN class=qt-207164021-27032024><SPAN class=font 
  style="FONT-FAMILY: Arial"><SPAN class=size style="FONT-SIZE: 13px"><SPAN 
  class=color 
  style="COLOR: rgb(0,0,128)"></SPAN></SPAN></SPAN></SPAN><BR> </DIV>
  <DIV><SPAN class=qt-207164021-27032024><SPAN class=font 
  style="FONT-FAMILY: Arial"><SPAN class=size style="FONT-SIZE: 13px"><SPAN 
  class=color style="COLOR: rgb(0,0,128)">SYMBOL<BR>    NAME 
  'electric_point'<BR>    TYPE svg<BR>    image 
  'symbols/annotation/electric.svg'<BR>END</SPAN></SPAN></SPAN></SPAN></DIV>
  <DIV><SPAN class=qt-207164021-27032024><SPAN class=font 
  style="FONT-FAMILY: Arial"><SPAN class=size style="FONT-SIZE: 13px"><SPAN 
  class=color 
  style="COLOR: rgb(0,0,128)"></SPAN></SPAN></SPAN></SPAN><BR> </DIV>
  <DIV><SPAN class=qt-207164021-27032024><SPAN class=font 
  style="FONT-FAMILY: Arial"><SPAN class=size style="FONT-SIZE: 13px"><SPAN 
  class=color style="COLOR: rgb(0,0,128)">So far this renders black symbols , 
  any ideas how to fix this ?</SPAN></SPAN></SPAN></SPAN><BR></DIV>
  <DIV><SPAN class=qt-207164021-27032024><SPAN class=font 
  style="FONT-FAMILY: Arial"><SPAN class=size style="FONT-SIZE: 13px"><SPAN 
  class=color 
  style="COLOR: rgb(0,0,128)"></SPAN></SPAN></SPAN></SPAN><BR> </DIV>
  <DIV><SPAN class=qt-207164021-27032024><SPAN class=font 
  style="FONT-FAMILY: Arial"><SPAN class=size style="FONT-SIZE: 13px"><SPAN 
  class=color 
  style="COLOR: rgb(0,0,128)">Cheers</SPAN></SPAN></SPAN></SPAN><BR></DIV>
  <DIV><SPAN class=qt-207164021-27032024><SPAN class=font 
  style="FONT-FAMILY: Arial"><SPAN class=size style="FONT-SIZE: 13px"><SPAN 
  class=color 
  style="COLOR: rgb(0,0,128)">Karsten</SPAN></SPAN></SPAN></SPAN><BR></DIV>
  <DIV><SPAN class=font style="FONT-FAMILY: Arial"><SPAN class=size 
  style="FONT-SIZE: 13px"><SPAN class=color 
  style="COLOR: rgb(0,0,128)"></SPAN></SPAN></SPAN><BR> </DIV>
  <DIV align=left>
  <DIV><SPAN class=font style='FONT-FAMILY: "Verdana", "sans-serif"'><SPAN 
  class=size style="FONT-SIZE: 11pt">Karsten Vennemann<BR></SPAN></SPAN><SPAN 
  class=font style='FONT-FAMILY: "Verdana", "sans-serif"'><SPAN class=size 
  style="FONT-SIZE: 9pt"><SPAN style="COLOR: rgb(0,50,100)"><A 
  title="http://www.terragis.net/ blocked::http://www.terragis.net/" 
  href="http://www.terragis.net"><SPAN class=color 
  style="COLOR: rgb(0,0,255)">www.terragis.net</SPAN></A></SPAN></SPAN></SPAN></DIV>
  <DIV align=left><SPAN class=font style="FONT-FAMILY: Arial"><SPAN class=size 
  style="FONT-SIZE: 13px"><SPAN class=color 
  style="COLOR: rgb(0,0,128)"></SPAN></SPAN></SPAN><BR> </DIV></DIV>
  <DIV>_______________________________________________<BR></DIV>
  <DIV>MapServer-users mailing list<BR></DIV>
  <DIV><A 
  href="mailto:MapServer-users@lists.osgeo.org">MapServer-users@lists.osgeo.org</A><BR></DIV>
  <DIV><A 
  href="https://lists.osgeo.org/mailman/listinfo/mapserver-users">https://lists.osgeo.org/mailman/listinfo/mapserver-users</A><BR></DIV>
  <DIV><BR></DIV></BLOCKQUOTE>
<DIV><BR></DIV></BODY></HTML>