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

aperi2007 aperi2007 at gmail.com
Mon Jul 11 14:51:55 EDT 2011


Hi Marco

thx for response.
it work very well.

Just a little question for fill section.

My symbols was with
fill:none

I try using

fill:param(fill) none

but qgis seem don't recognize it
I guess the 'none' value is not supported right ?

Hovewer thx for this enhancement. It is very useful and save me from 
make many symbols for more colors and more sizes.

Andrea.



Il 11/07/2011 17:39, Marco Hugentobler ha scritto:
> 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
>
>



More information about the Qgis-developer mailing list