[Qgis-developer] QgsVectorJoinInfo in Windows doesn't work but works fine in Linux
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...
More information about the Qgis-developer