Skip to content
Permalink
Browse files
Merge pull request #1026 from anitagraser/working
  • Loading branch information
volaya committed Dec 15, 2013
2 parents 27bea19 + d132451 commit bb1380ea307b8e1fef8199b4b94b8da9797d8aaf
Showing with 1 addition and 5 deletions.
  1. +1 −5 python/plugins/processing/algs/JoinAttributes.py
@@ -75,9 +75,7 @@ def processAlgorithm(self, progress):
joinField2Index = layer2.fieldNameIndex(field2)

# Output
outFields = []
outFields.extend(provider.fields())
outFields.extend(provider2.fields())
outFields = vector.combineVectorFields(layer,layer2)

writer = output.getVectorWriter(outFields, provider.geometryType(),
layer.crs())
@@ -98,12 +96,10 @@ def processAlgorithm(self, progress):
attrs2 = inFeat2.attributes()
joinValue2 = attrs2[joinField2Index]
if joinValue1 == joinValue2:

# Create the new feature
outFeat.setGeometry(inGeom)
attrs.extend(attrs2)
break
outFeat.setAttributes(attrs)
writer.addFeature(outFeat)

del writer

0 comments on commit bb1380e

Please sign in to comment.