Merge pull request #844 from minorua/union_attrs

fTools/union: fix output attribute shift
This commit is contained in:
Nathan Woodrow 2013-08-31 00:03:50 -07:00
commit 94a440f56d

View File

@ -1196,13 +1196,14 @@ class geoprocessingThread( QThread ):
FEATURE_EXCEPT = False
length = len( vproviderA.fields() )
atMapA = [None] * length
fitB = vproviderB.getFeatures()
while fitB.nextFeature( inFeatB ):
add = False
geom = QgsGeometry( inFeatB.geometry() )
diff_geom = QgsGeometry( geom )
atMap = inFeatB.attributes()
atMap = atMapA + inFeatB.attributes()
intersects = indexB.intersects( geom.boundingBox() )
if len(intersects) < 1: