Skip to content
Permalink
Browse files
Uniform and informative output names for Processing (QGIS, Take #2)
  • Loading branch information
pcav committed May 22, 2015
1 parent efeae6f commit 00f64971f7e9bceb591b4573353cd484635152ed
@@ -66,7 +66,7 @@ def defineCharacteristics(self):
self.tr('Operator'), self.OPERATORS))
self.addParameter(ParameterString(self.VALUE, self.tr('Value')))

self.addOutput(OutputVector(self.OUTPUT, self.tr('Output')))
self.addOutput(OutputVector(self.OUTPUT, self.tr('Extracted (attribute)')))

def processAlgorithm(self, progress):
layer = dataobjects.getObjectFromUri(self.getParameterValue(self.INPUT))
@@ -52,7 +52,7 @@ def defineCharacteristics(self):
self.addParameter(ParameterGeometryPredicate(self.PREDICATE,
self.tr('Geometric predicate'),
left=self.INPUT, right=self.INTERSECT))
self.addOutput(OutputVector(self.OUTPUT, self.tr('Selection')))
self.addOutput(OutputVector(self.OUTPUT, self.tr('Extracted (location)')))

def processAlgorithm(self, progress):
filename = self.getParameterValue(self.INPUT)
@@ -61,7 +61,7 @@ def defineCharacteristics(self):
self.INPUT_B,
optional=True))

self.addOutput(OutputVector(self.OUTPUT, self.tr('Output layer')))
self.addOutput(OutputVector(self.OUTPUT, self.tr('Intersections')))

def processAlgorithm(self, progress):
layerA = dataobjects.getObjectFromUri(self.getParameterValue(self.INPUT_A))
@@ -57,7 +57,7 @@ def defineCharacteristics(self):
self.addParameter(ParameterNumber(self.NUMBER,
self.tr('Number/percentage of selected features'), 0, None, 10))

self.addOutput(OutputVector(self.OUTPUT, self.tr('Selection')))
self.addOutput(OutputVector(self.OUTPUT, self.tr('Extracted (random)')))

def processAlgorithm(self, progress):
filename = self.getParameterValue(self.INPUT)
@@ -61,7 +61,7 @@ def defineCharacteristics(self):
self.addParameter(ParameterNumber(self.NUMBER,
self.tr('Number/percentage of selected features'), 1, None, 10))

self.addOutput(OutputVector(self.OUTPUT, self.tr('Selection')))
self.addOutput(OutputVector(self.OUTPUT, self.tr('Extracted (random stratified)')))

def processAlgorithm(self, progress):
filename = self.getParameterValue(self.INPUT)
@@ -62,7 +62,7 @@ def defineCharacteristics(self):
self.addParameter(ParameterNumber(self.NUMBER,
self.tr('Number/percentage of selected features'), 1, None, 10))

self.addOutput(OutputVector(self.OUTPUT, self.tr('Selection'), True))
self.addOutput(OutputVector(self.OUTPUT, self.tr('Selection stratified'), True))

def processAlgorithm(self, progress):
filename = self.getParameterValue(self.INPUT)
@@ -66,7 +66,7 @@ def defineCharacteristics(self):
self.tr('Operator'), self.OPERATORS))
self.addParameter(ParameterString(self.VALUE, self.tr('Value')))

self.addOutput(OutputVector(self.OUTPUT, self.tr('Output'), True))
self.addOutput(OutputVector(self.OUTPUT, self.tr('Selected (attribute)'), True))

def processAlgorithm(self, progress):
fileName = self.getParameterValue(self.INPUT)
@@ -52,7 +52,7 @@ def defineCharacteristics(self):
self.tr('Selection attribute'), self.INPUT, ParameterTableField.DATA_TYPE_NUMBER))
self.addParameter(ParameterNumber(self.VALUE, self.tr('Value')))

self.addOutput(OutputVector(self.OUTPUT, self.tr('Output'), True))
self.addOutput(OutputVector(self.OUTPUT, self.tr('Selected (attribute sum)'), True))

def processAlgorithm(self, progress):
fileName = self.getParameterValue(self.INPUT)
@@ -52,7 +52,7 @@ def defineCharacteristics(self):
self.tr("Expression")))
self.addParameter(ParameterSelection(self.METHOD,
self.tr('Modify current selection by'), self.METHODS, 0))
self.addOutput(OutputVector(self.RESULT, self.tr('Output'), True))
self.addOutput(OutputVector(self.RESULT, self.tr('Selected (expression)'), True))

def processAlgorithm(self, progress):
filename = self.getParameterValue(self.LAYERNAME)
@@ -61,7 +61,7 @@ def defineCharacteristics(self):
self.addParameter(ParameterSelection(self.METHOD,
self.tr('Modify current selection by'),
self.METHODS, 0))
self.addOutput(OutputVector(self.OUTPUT, self.tr('Selection'), True))
self.addOutput(OutputVector(self.OUTPUT, self.tr('Selected (location)'), True))

def processAlgorithm(self, progress):
filename = self.getParameterValue(self.INPUT)
@@ -49,7 +49,7 @@ def defineCharacteristics(self):
self.addParameter(ParameterVector(self.INPUT_B,
self.tr('Split layer'), [ParameterVector.VECTOR_TYPE_LINE]))

self.addOutput(OutputVector(self.OUTPUT, self.tr('Split lines')))
self.addOutput(OutputVector(self.OUTPUT, self.tr('Splitted')))

def processAlgorithm(self, progress):
layerA = dataobjects.getObjectFromUri(self.getParameterValue(self.INPUT_A))

0 comments on commit 00f6497

Please sign in to comment.