[Qgis-developer] QgsVectorJoinInfo in Windows doesn't work but works fine in Linux

Jeff Cavner jcavner at ku.edu
Wed Dec 17 12:40:37 PST 2014

A programmatic join in 2.6.x using the following:

joinIdx = joinLyr.fieldNameIndex('siteid')
targetIdx = pamLyr.fieldNameIndex('siteid')
joinLyrId = joinLyr.id()
joinInfo = QgsVectorJoinInfo()
joinInfo.memoryCache = True
joinInfo.joinField = joinIdx
joinInfo.joinLayerId = joinLyrId
joinInfo.targetField = targetIdx

Works fine in Linux, but not in Windows.  In windows if you look at the
join in properties on the layer, the targetField is missing.  The fields
from the joined layer show up in the attributes in the target layer but
have no values.

Any help would be greatly appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20141217/77500d58/attachment.html>

More information about the Qgis-developer mailing list