Hello Jorge,

Thanks for the answer. We're not quite ready to embark onto v3.x yet, and can’t 
wait for it either.

However, I found that the standard SVGs had parameterized the style info, so I 
could add the missing color info like this:

http://......../amenity_firestation.svg?fill=#ff0000

I had (luckily) just 22 SVG symbols to handle, so it wasn't too troublesome to 
do by hand.


Kind regards / Med venlig hilsen

Lars I. Nielsen, LIFA A/S
GIS konsulent, FME Certified Professional

T 6313 6800
@ l...@lifa.dk
D 6313 6849
W www.lifa.dk
M 2492 4866





-----Oprindelig meddelelse-----
Fra: Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org] På vegne af Jorge 
Gustavo Rocha
Sendt: 7. september 2017 18:34
Til: qgis-user@lists.osgeo.org
Emne: Re: [Qgis-user] Export styles with svg and color ?

Hi Lars,

The support for SLD in QGIS3 is being improved. In QGIS3, the fill color of SVG 
symbols is included in the SLD.

If you really need this feature, you might want to try QGIS3.

Regards,

Jorge Gustavo

On 07-09-2017 14:05, Lars I. Nielsen, LIFA A/S wrote:
> Hi list,
>
>
>
> We’re using QGIS to style some point layers, and export the styles to
> Geoserver via SLD.
>
>
>
> Unfortunately, it seems that QGIS (2.18.11) exports the
> PointSymbolyzer’s referencing SVG symbols without their color
> information (or anything else for that matter).
>
>
>
> Is it completely impossible to achieve, or is there an easy
> work-around for this ?
>
>
>
>
>
> Med venlig hilsen
>
> Lars I. Nielsen, LIFA A/S
> GIS konsulent, FME Certified Professional
>
> http://website.lifa.dk/docs/LIFA_GIS·IT_logo.png
>
> *T*
>
>
>
> 6313 6800
>
>
>
> *@*
>
>
>
> l...@lifa.dk
>
> *D*
>
>
>
> 6313 6849
>
>
>
> *W*
>
>
>
> www.lifa.dk <http://www.lifa.dk>
>
> *M*
>
>
>
> 2492 4866
>
>
>
>
>
>
>
>
>
>
> *Vi tilbyder interne og eksterne kurser. Du kan finde mere information
> i vores kursuskalenderVi tilbyder interne og eksterne kurser. Du kan
> finde mere information i vores **kursuskalender
> <https://www.lifa.dk/kursuskalender>*
>
>
>
>
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>

J. Gustavo
--
Jorge Gustavo Rocha
Departamento de Informática
Universidade do Minho
4710-057 Braga
Tel: +351 253604480
Fax: +351 253604471
Móvel: +351 910333888
skype: nabocudnosor
_______________________________________________
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

_______________________________________________
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to