Skip to content

Commit

Permalink
Uniform and informative output names for Processing (QGIS, Take #2)
Browse files Browse the repository at this point in the history
  • Loading branch information
pcav committed May 22, 2015
1 parent efeae6f commit 00f6497
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/qgis/ExtractByAttribute.py
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/qgis/ExtractByLocation.py
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/qgis/LinesIntersection.py
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/qgis/RandomExtract.py
Expand Up @@ -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)
Expand Down
Expand Up @@ -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)
Expand Down
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/qgis/SelectByAttribute.py
Expand Up @@ -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)
Expand Down
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/qgis/SelectByExpression.py
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/qgis/SelectByLocation.py
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/qgis/SplitLinesWithLines.py
Expand Up @@ -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))
Expand Down

0 comments on commit 00f6497

Please sign in to comment.