We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 584f192 commit 71fa5d4Copy full SHA for 71fa5d4
python/plugins/processing/algs/qgis/ConvexHull.py
@@ -64,7 +64,7 @@ def processAlgorithm(self, progress):
64
useField = self.getParameterValue(self.METHOD) == 1
65
fieldName = self.getParameterValue(self.FIELD)
66
67
- f = QgsField('value')
+ f = QgsField('value', QVariant.String, '', 255)
68
if useField:
69
index = layer.fieldNameIndex(fieldName)
70
fType = layer.pendingFields()[index].type()
@@ -79,12 +79,11 @@ def processAlgorithm(self, progress):
79
f.setType(QVariant.String)
80
f.setLength(255)
81
82
- fields = [
83
- QgsField('id', QVariant.Int, '', 20),
84
- f,
85
- QgsField('area', QVariant.Double, '', 20, 6),
86
- QgsField('perim', QVariant.Double, '', 20, 6)
87
- ]
+ fields = [QgsField('id', QVariant.Int, '', 20),
+ f,
+ QgsField('area', QVariant.Double, '', 20, 6),
+ QgsField('perim', QVariant.Double, '', 20, 6)
+ ]
88
89
writer = self.getOutputFromName(self.OUTPUT).getVectorWriter(
90
fields, QGis.WKBPolygon, layer.dataProvider().crs())
0 commit comments