Ah, in the meantime I found out what is not working, it's relative paths...
if I point to the SVG
using an absolute path then color replacement works. e.g.:

                <OnlineResource xlink:type="simple"
xlink:href="file:///home/aaime/devel/gs_releases/geoserver-2.10.0/data_dir/styles/firestation.svg?fill=#FF0000"
/>

Cheers
Andrea


On Thu, Nov 17, 2016 at 10:29 AM, Joaquin Carrasco Gallego <
[email protected]> wrote:

> Thanks Andrea, I have just opened it.
>
> El 17/11/16 a las 10:06, Andrea Aime escribió:
>
> Hi Joaquin,
> I've just tried and got the same results as you. No idea why it's
> happening though, the code
> to do parametrization has automated tests using exactly the firestation
> symbol and they are working...
> Can you open a ticket at https://osgeo-org.atlassian.net/projects/GEOS/
> summary so that we don't forget
> to look into it?
>
> Cheers
> Andrea
>
>
> On Wed, Nov 16, 2016 at 12:15 PM, Joaquin Carrasco Gallego <
> [email protected]> wrote:
>
>> Hi Andrea, I tried as well with the firestation icon from QGIS 2.14 and I
>> am experiencing the same problem while modifying the Manhattan POI layer
>> from geoserver and styling it with the svg that I attach. I attached the
>> icon and two screenshots from layer preview showing the icon without fill
>> param and with fill param. With fill param the icon is not shown. I don´t
>> know if i am doing something wrong or misunderstanding something.
>>
>> Thanks for your help.
>>
>>
>>
>> El 14/11/16 a las 17:42, Joaquin Carrasco Gallego escribió:
>>
>> Hi Andrea, thanks for your help. I attached the svg icon (I designed with
>> svg-edit online editor and replaced manually the param lines) and the
>> portion of the sld that is parametrized. The rectangle in the image is
>> shown but it is totally dark.
>>
>>  <PointSymbolizer uom="http://www.opengeospatial.org/se/units/metre";
>> <http://www.opengeospatial.org/se/units/metre>>
>> <Graphic>
>>      <ExternalGraphic>
>>        <OnlineResource xlink:type="simple" 
>> xlink:href="via14.svg?fill=#EB131A"
>> />
>>        <Format>image/svg</Format>
>>      </ExternalGraphic>
>>      <Size>20</Size>
>>   <Rotation><ogc:PropertyName>rotation</ogc:PropertyName></Rotation>
>>    </Graphic>
>>   </PointSymbolizer>
>>
>> Thanks!!
>>
>> El 14/11/16 a las 17:29, Andrea Aime escribió:
>>
>> Hi,
>> the code to do parametric SVG is there for sure. Can you share your SLD
>> and SVG for a test?
>>
>> Cheers
>> Andrea
>>
>>
>> 2016-11-14 16:57 GMT+01:00 Joaquin Carrasco Gallego <
>> [email protected]>:
>>
>>> Hi, according to this http://blog.geoserver.org/2016
>>> /10/31/geoserver-2-10-0-released/ I understand that in geoserver 2.10
>>> svg images can be parametrized with fill color like QGIS. But i tried it
>>> and my parametrizable svg keeps dark. Does anyone try this feature? Or i am
>>> wrong and this feature is not still present?.
>>>
>>> Thanks a lot.
>>>
>>> --
>>>
>>> *Joaquín Carrasco Gallego*
>>>
>>> *GEOSYSTEC S.L*
>>> ------------------------------------------------------------------------------
>>>
>>>
>>> Developer Access Program for Intel Xeon Phi Processors
>>> Access to Intel Xeon Phi processor-based developer platforms.
>>> With one year of Intel Parallel Studio XE.
>>> Training and support from Colfax.
>>> Order your platform today. http://sdm.link/xeonphi
>>> _______________________________________________
>>> Geoserver-users mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>>>
>>>
>>
>>
>> --
>> ==
>> GeoServer Professional Services from the experts! Visit
>> http://goo.gl/it488V for more information.
>> ==
>>
>> Ing. Andrea Aime
>> @geowolf
>> Technical Lead
>>
>> GeoSolutions S.A.S.
>> Via di Montramito 3/A
>> 55054  Massarosa (LU)
>> phone: +39 0584 962313 <%2B39%200584%20962313>
>> fax: +39 0584 1660272 <%2B39%200584%201660272>
>> mob: +39  339 8844549 <%2B39%20%C2%A0339%208844549>
>>
>> http://www.geo-solutions.it
>> http://twitter.com/geosolutions_it
>>
>> *AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*
>>
>> Le informazioni contenute in questo messaggio di posta elettronica e/o
>> nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
>> loro utilizzo è consentito esclusivamente al destinatario del messaggio,
>> per le finalità indicate nel messaggio stesso. Qualora riceviate questo
>> messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
>> darcene notizia via e-mail e di procedere alla distruzione del messaggio
>> stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
>> divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
>> utilizzarlo per finalità diverse, costituisce comportamento contrario ai
>> principi dettati dal D.Lgs. 196/2003.
>>
>>
>>
>> The information in this message and/or attachments, is intended solely
>> for the attention and use of the named addressee(s) and may be confidential
>> or proprietary in nature or covered by the provisions of privacy act
>> (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
>> Code).Any use not in accord with its purpose, any disclosure, reproduction,
>> copying, distribution, or either dissemination, either whole or partial, is
>> strictly forbidden except previous formal approval of the named
>> addressee(s). If you are not the intended recipient, please contact
>> immediately the sender by telephone, fax or e-mail and delete the
>> information in this message that has been received in error. The sender
>> does not give any warranty or accept liability as the content, accuracy or
>> completeness of sent messages and accepts no responsibility  for changes
>> made after they were sent or for other risks which arise as a result of
>> e-mail transmission, viruses, etc.
>>
>> -------------------------------------------------------
>>
>>
>> --
>>
>> *Joaquín Carrasco Gallego*
>>
>> *GEOSYSTEC S.L*
>>
>> *c/ Platería nº 50, 3ºE*
>>
>> *30001 - MURCIA*
>>
>> e-mail: [email protected]
>>
>> http://www.geosystec.com
>>
>> ------------------------------
>>
>> Este mensaje y sus archivos adjuntos van dirigidos exclusivamente a su
>> destinatario, pudiendo contener información confidencial sometida a secreto
>> profesional. No está permitida su reproducción o distribución sin la
>> autorización expresa de *GEOSYSTEC S.L. *Si usted no es el destinatario
>> final por favor elimínelo e infórmenos por esta vía.
>>
>> De acuerdo con la LOPD, le informamos que sus datos personales y
>> dirección de correo electrónico forman parte de un fichero, cuyo
>> responsable es *GEOSYSTEC S.L. *siendo la finalidad del fichero, *la
>> gestión de carácter comercial y el envío de comunicaciones comerciales
>> sobre nuestros productos y/o servicios*.
>>
>> Si lo desea, podrá usted ejercitar los derechos de acceso, rectificación,
>> cancelación y oposición de sus datos enviando un mensaje a la siguiente
>> dirección de correo electrónico a [email protected]
>> <[email protected]?subject=info%40geosystec.com>  indicando en la línea
>> de “Asunto” el derecho que desea ejercitar.
>>
>>
>> ------------------------------------------------------------------------------
>>
>> _______________________________________________
>> Geoserver-users mailing 
>> [email protected]https://lists.sourceforge.net/lists/listinfo/geoserver-users
>>
>> --
>>
>> *Joaquín Carrasco Gallego*
>>
>> *GEOSYSTEC S.L*
>>
>> *c/ Platería nº 50, 3ºE*
>>
>> *30001 - MURCIA*
>>
>> e-mail: [email protected]
>>
>> http://www.geosystec.com
>>
>> ------------------------------
>>
>> Este mensaje y sus archivos adjuntos van dirigidos exclusivamente a su
>> destinatario, pudiendo contener información confidencial sometida a secreto
>> profesional. No está permitida su reproducción o distribución sin la
>> autorización expresa de *GEOSYSTEC S.L. *Si usted no es el destinatario
>> final por favor elimínelo e infórmenos por esta vía.
>>
>> De acuerdo con la LOPD, le informamos que sus datos personales y
>> dirección de correo electrónico forman parte de un fichero, cuyo
>> responsable es *GEOSYSTEC S.L. *siendo la finalidad del fichero, *la
>> gestión de carácter comercial y el envío de comunicaciones comerciales
>> sobre nuestros productos y/o servicios*.
>>
>> Si lo desea, podrá usted ejercitar los derechos de acceso, rectificación,
>> cancelación y oposición de sus datos enviando un mensaje a la siguiente
>> dirección de correo electrónico a [email protected]
>> <[email protected]?subject=info%40geosystec.com>  indicando en la línea
>> de “Asunto” el derecho que desea ejercitar.
>>
> --
> ==
> GeoServer Professional Services from the experts! Visit
> http://goo.gl/it488V for more information.
> ==
> Ing. Andrea Aime
> @geowolf
> Technical Lead
> GeoSolutions S.A.S. Via di Montramito 3/A 55054  Massarosa (LU)
> phone: +39 0584 962313
> fax: +39 0584 1660272
> mob: +39  339 8844549
> http://www.geo-solutions.it
> http://twitter.com/geosolutions_it
>
> *AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*
>
> Le informazioni contenute in questo messaggio di posta elettronica e/o
> nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
> loro utilizzo è consentito esclusivamente al destinatario del messaggio,
> per le finalità indicate nel messaggio stesso. Qualora riceviate questo
> messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
> darcene notizia via e-mail e di procedere alla distruzione del messaggio
> stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
> divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
> utilizzarlo per finalità diverse, costituisce comportamento contrario ai
> principi dettati dal D.Lgs. 196/2003.
>
>
>
> The information in this message and/or attachments, is intended solely for
> the attention and use of the named addressee(s) and may be confidential or
> proprietary in nature or covered by the provisions of privacy act
> (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
> Code).Any use not in accord with its purpose, any disclosure, reproduction,
> copying, distribution, or either dissemination, either whole or partial, is
> strictly forbidden except previous formal approval of the named
> addressee(s). If you are not the intended recipient, please contact
> immediately the sender by telephone, fax or e-mail and delete the
> information in this message that has been received in error. The sender
> does not give any warranty or accept liability as the content, accuracy or
> completeness of sent messages and accepts no responsibility  for changes
> made after they were sent or for other risks which arise as a result of
> e-mail transmission, viruses, etc.
> -------------------------------------------------------
>
> --
>
> *Joaquín Carrasco Gallego*
>
> *GEOSYSTEC S.L*
>
> *c/ Platería nº 50, 3ºE*
>
> *30001 - MURCIA*
>
> e-mail: [email protected]
>
> http://www.geosystec.com
>
> ------------------------------
>
> Este mensaje y sus archivos adjuntos van dirigidos exclusivamente a su
> destinatario, pudiendo contener información confidencial sometida a secreto
> profesional. No está permitida su reproducción o distribución sin la
> autorización expresa de *GEOSYSTEC S.L. *Si usted no es el destinatario
> final por favor elimínelo e infórmenos por esta vía.
>
> De acuerdo con la LOPD, le informamos que sus datos personales y dirección
> de correo electrónico forman parte de un fichero, cuyo responsable es 
> *GEOSYSTEC
> S.L. *siendo la finalidad del fichero, *la gestión de carácter comercial
> y el envío de comunicaciones comerciales sobre nuestros productos y/o
> servicios*.
>
> Si lo desea, podrá usted ejercitar los derechos de acceso, rectificación,
> cancelación y oposición de sus datos enviando un mensaje a la siguiente
> dirección de correo electrónico a [email protected]
> <[email protected]?subject=info%40geosystec.com>  indicando en la línea
> de “Asunto” el derecho que desea ejercitar.
>



-- 
==
GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via di Montramito 3/A
55054  Massarosa (LU)
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

*AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo è consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.



The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility  for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.

-------------------------------------------------------
------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to