mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
Fix #6063
This commit is contained in:
parent
f8e2cacf45
commit
8a50ddb93f
@ -468,7 +468,8 @@ class geoprocessingThread( QThread ):
|
||||
if useField:
|
||||
importedField = vproviderA.fields().at( self.myParam )
|
||||
importedFieldName = importedField.name( )
|
||||
outFeatFields.append( importedField )
|
||||
#
|
||||
outFeatFields.extend( vproviderA.fields() )
|
||||
# creating area and perimeter fields
|
||||
areaField = QgsField("area", QVariant.Double)
|
||||
perimField = QgsField("perim", QVariant.Double)
|
||||
@ -476,8 +477,6 @@ class geoprocessingThread( QThread ):
|
||||
outFeatFields.append(areaField)
|
||||
outFeatFields.append(perimField)
|
||||
#
|
||||
outFeatFields.extend( vproviderA.fields() )
|
||||
#
|
||||
writer = QgsVectorFileWriter( self.myName, self.myEncoding, outFeatFields,
|
||||
QGis.WKBPolygon, vproviderA.crs() )
|
||||
if writer.hasError():
|
||||
|
Loading…
x
Reference in New Issue
Block a user