On Wed, Jun 4, 2014 at 10:17 AM, Thomas Colley <
[email protected]> wrote:

> Hi
>
>
>
> I’m wondering if it’s possible to control an SVG symbols fill and stroke
> colours using parameters in an GeoServer SLD.
>
>
>
> http://www.w3.org/TR/2009/WD-SVGParamPrimer-20090616/#Introduction
>
>
>
> I’ve modified the SVG to include references to parameters
>
>
>
> .. <rect fill="param(fill) #ff0000" stroke="param(outline) #00ff00" …
>
>
>
> And have tried passing the parameter in the SLD like
>
>
>
> <sld:OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"; 
> xlink:type="simple"
> xlink:href="symbology/rect.svg?fill=#3b9bc4"/> but Geoserver seems to
> ignore the passed fill colour.
>
>
>
> I’m not sure if I’m doing something wrong or whether Geoserver doesn’t
> support this.
>

GeoServer does not support this. But it would be a nice feature for sure.
If you have a urgent need for it and cannot implement it yourself, you can
look at commercial support options here:
http://geoserver.org/support/

Cheers
Andrea

==
Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

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

-------------------------------------------------------
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their 
applications. Written by three acclaimed leaders in the field, 
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to