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
pamLyr.addJoin(joinInfo)

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.
_______________________________________________
Qgis-developer mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to