[Qgis-developer] Pyqgis - join a CSV to a vector layer

kimaidou kimaidou at gmail.com
Wed Jun 18 10:22:12 PDT 2014


Hi all.

I am trying to join a DBF to a vector layer via python . I can create the
QgsVectorJoinInfo() , set the parameters and add it to the layer :
https://pastee.org/fv55y

When I get vlayer.vectorJoins() , it is filled (3 times, because I made 3
attempts), but when I open the vector layer properties dialog, no join
appears in the Join tab.

Should I update something after adding the join via addJoin method ? Has
anyone a working example ?

Thanks in advance

Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20140618/6e95c082/attachment.html>


More information about the Qgis-developer mailing list