We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent ea447e7 commit e4b0f78Copy full SHA for e4b0f78
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