[Qgis-developer] Using SVG symbol with modifiable color-widths

Marco Hugentobler marco.hugentobler at sourcepole.ch
Mon Jul 11 11:39:59 EDT 2011


Hi Andrea

I'm not sure, but it could be the single quotes. Try to change

<path style="fill:none;stroke:'param(outline) #000000'...

to 

<path style="fill:none;stroke:param(outline) #000000...

If it does not help, attach the svg symbol to test. 

And the svg parametrisation works only with new symbology, not with the old 
one.

Regards,
Marco

Am Samstag, 9. Juli 2011, 18.58:11 schrieb aperi2007:
> Hi,
> I'm try-ing the option to change the color/width of SVG symbol
> following instruction in
> http://www.sourcepole.ch/
> 
> 
> After create the symbol with Inkscape I see the SVG has
> this structure:
> 
> ...
> <path
> style="fill:none;stroke:#000000;stroke-width:0.1;stroke-linecap:butt;
> stroke-linejoin:miter;stroke-opacity:1;stroke-miterlimit:4;stroke-dasharray
> :none" ...
> 
> so I try to change like this:
> 
> <path style="fill:none;stroke:'param(outline)
> #000000';stroke-width:'param(stroke-width)
> 0.1';stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;stroke-mite
> rlimit:4;stroke-dasharray:none" ...
> 
> Unfortunately it don't seem work.
> 
> qgis don't render the symbol.
> 
> Because I'm not an SVG expert perhaps I do some odd error.
> 
> thx,
> 
> Andrea.
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer


-- 
Dr. Marco Hugentobler
Sourcepole -  Linux & Open Source Solutions
Churerstrasse 22, CH-8808 Pfäffikon SZ, Switzerland
marco.hugentobler at sourcepole.ch http://www.sourcepole.ch
Technical Advisor QGIS Project Steering Committee


More information about the Qgis-developer mailing list