Skip to content
Permalink
Browse files

[processing] allow all field types as unique ID field in Mean coords alg

(cherry picked from commit 75269d6)
  • Loading branch information
alexbruy committed Sep 16, 2016
1 parent c603134 commit 37531ec9d9d894b80f6377cafe975cade41e9093
Showing with 7 additions and 4 deletions.
  1. +7 −4 python/plugins/processing/algs/qgis/MeanCoords.py
@@ -59,11 +59,14 @@ def defineCharacteristics(self):
self.addParameter(ParameterVector(self.POINTS,
self.tr('Input layer'), [ParameterVector.VECTOR_TYPE_ANY]))
self.addParameter(ParameterTableField(self.WEIGHT,
self.tr('Weight field'), MeanCoords.POINTS,
ParameterTableField.DATA_TYPE_NUMBER, optional=True))
self.tr('Weight field'),
MeanCoords.POINTS,
ParameterTableField.DATA_TYPE_NUMBER,
optional=True))
self.addParameter(ParameterTableField(self.UID,
self.tr('Unique ID field'), MeanCoords.POINTS,
ParameterTableField.DATA_TYPE_NUMBER, optional=True))
self.tr('Unique ID field'),
MeanCoords.POINTS,
optional=True))

self.addOutput(OutputVector(MeanCoords.OUTPUT, self.tr('Mean coordinates')))

0 comments on commit 37531ec

Please sign in to comment.
You can’t perform that action at this time.