File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
python/plugins/processing/algs Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -75,9 +75,7 @@ def processAlgorithm(self, progress):
75
75
joinField2Index = layer2 .fieldNameIndex (field2 )
76
76
77
77
# Output
78
- outFields = []
79
- outFields .extend (provider .fields ())
80
- outFields .extend (provider2 .fields ())
78
+ outFields = vector .combineVectorFields (layer ,layer2 )
81
79
82
80
writer = output .getVectorWriter (outFields , provider .geometryType (),
83
81
layer .crs ())
@@ -98,12 +96,10 @@ def processAlgorithm(self, progress):
98
96
attrs2 = inFeat2 .attributes ()
99
97
joinValue2 = attrs2 [joinField2Index ]
100
98
if joinValue1 == joinValue2 :
101
-
102
99
# Create the new feature
103
100
outFeat .setGeometry (inGeom )
104
101
attrs .extend (attrs2 )
105
102
break
106
103
outFeat .setAttributes (attrs )
107
104
writer .addFeature (outFeat )
108
-
109
105
del writer
You can’t perform that action at this time.
0 commit comments