Skip to content
Permalink
Browse files
Merge pull request #1492 from nyalldawson/fix_10728
[processing] Fix blocker #10728
  • Loading branch information
NathanW2 committed Jun 26, 2014
2 parents 4d6cfd9 + 0a7e69c commit 2d1e983ffde35b3535d53f86602f3915962c89bc
@@ -56,8 +56,8 @@ def defineCharacteristics(self):
self.addParameter(ParameterCrs(self.DEST_SRS,
'Destination SRS (EPSG Code)', 'EPSG:4326'))
self.addParameter(ParameterNumber(self.TR,
'Output file resolution in target georeferenced units \
(leave 0 for no change)', 0.0, None, 0.0))
'Output file resolution in target georeferenced units (leave 0 for no change)',
0.0, None, 0.0))
self.addParameter(ParameterSelection(self.METHOD, 'Resampling method',
self.METHOD_OPTIONS))
self.addParameter(ParameterString(self.EXTRA,
@@ -53,8 +53,8 @@ def defineCharacteristics(self):
self.addParameter(ParameterVector(ConvexHull.INPUT, 'Input layer',
[ParameterVector.VECTOR_TYPE_ANY]))
self.addParameter(ParameterTableField(ConvexHull.FIELD,
'Field (optional, only used if creating convex \
hulls by classes)', ConvexHull.INPUT, optional=True))
'Field (optional, only used if creating convex hulls by classes)',
ConvexHull.INPUT, optional=True))
self.addParameter(ParameterSelection(ConvexHull.METHOD, 'Method',
ConvexHull.METHODS))
self.addOutput(OutputVector(ConvexHull.OUTPUT, 'Convex hull'))
@@ -327,6 +327,8 @@ def updateDependentFields(self):
for child in children:
widget = self.valueItems[child]
widget.clear()
if self.alg.getParameterFromName(child).optional:
widget.addItem("[not set]")
widget.addItems(self.getFields(layer,
self.alg.getParameterFromName(child).datatype))

0 comments on commit 2d1e983

Please sign in to comment.