[Qgis-user] SVG borders with data defined override in Postgis layer

didier peeters dpeeter1 at ulb.ac.be
Fri Sep 18 05:57:53 PDT 2015


Hi Andreas, 

yes, I can define a border width ‘manually’ in the styling of the layer, but I cannot override this with a value from Postgis.
I will send you a svg.

Didier



See also http://blog.sourcepole.ch/2011/06/30/svg-symbols-in-qgis-with-modifiable-colors/ <http://blog.sourcepole.ch/2011/06/30/svg-symbols-in-qgis-with-modifiable-colors/>

> Le 18 sept. 2015 à 14:42, Andreas Neumann <a.neumann at carto.net <mailto:a.neumann at carto.net>> a écrit :
> 
> Hi Didier,
> 
> Did you prepare your SVG file accordingly?
> 
> You need something like the following in your SVG file wherever you want to dynamically replace properties:
> 
> <rect fill="param(fill) #ff0000" stroke="param(outline) #00ff00" stroke-width="param(stroke-width) 10" width="100" height="100">
> 
> Can you share your SVG file so I can have a look if it is properly prepared?
> 
> Andreas
> 
> On 18.09.2015 14:36, didier peeters wrote:
> Qgis-user at lists.osgeo.org <mailto:Qgis-user at lists.osgeo.org>
> 
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org <mailto:Qgis-user at lists.osgeo.org>
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>> I can refine my description : 
>> the problem occurs on the border width only, the border color works fine.  
>> 
>>> 
>>> 
>>> Still, no one has ever met this problem ?
>>> 
>>> Didier
>>> 
>>> Le 17 sept. 2015 à 22:37, didier peeters <dpeeter1 at ulb.ac.be> <mailto:dpeeter1 at ulb.ac.be> a écrit :
>>> I have a problem with the border parameter of SVG markers in QGis 2.10 (on Mac OS 10.10.5); I’m using PostGIS layers and the SVG markers properties are determined by the DB, i.e. the svg itself, the color, the rotation, with data define override. I also want to define the border color and width the same way but it doesn’t work, nothing happens.  If I deactivate the overriding everything is correct.  
>> Qgis-user at lists.osgeo.org <mailto:Qgis-user at lists.osgeo.org>
>>> 
>>> 
>>> 
>>> 
>>> _______________________________________________
>> http://lists.osgeo.org/mailman/listinfo/qgis-user <http://lists.osgeo.org/mailman/listinfo/qgis-user>
>>> Hello,
>>> I haven’t found any bug report about this. Any idea ?
>>> Qgis-user mailing list
>>>> For the color I use a varchar type (same as for the color of the svg itself) and for the width a numeric (also tried real, double precision, …) .
>>>> Didier
>> _______________________________________________
>> Qgis-user mailing list
>> http://lists.osgeo.org/mailman/listinfo/qgis-user <http://lists.osgeo.org/mailman/listinfo/qgis-user>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20150918/bf51e7c4/attachment.html>


More information about the Qgis-user mailing list