Skip to content
Permalink
Browse files

Uniform and informative output names for Processing (GDAL)

  • Loading branch information
pcav committed May 18, 2015
1 parent 0277421 commit 69ed92bcfc14395cb23ca3d9b8c31f049b803e1f
@@ -54,7 +54,7 @@ def defineCharacteristics(self):
self.addParameter(ParameterExtent(self.PROJWIN, self.tr('Clipping extent')))
self.addParameter(ParameterString(self.EXTRA,
self.tr('Additional creation parameters'), '', optional=True))
self.addOutput(OutputRaster(self.OUTPUT, self.tr('Clipped')))
self.addOutput(OutputRaster(self.OUTPUT, self.tr('Clipped (extent)')))

def getConsoleCommands(self):
out = self.getOutputValue(self.OUTPUT)
@@ -64,7 +64,7 @@ def defineCharacteristics(self):
self.tr('Keep resolution of output raster'), False))
self.addParameter(ParameterString(self.EXTRA,
self.tr('Additional creation parameters'), '', optional=True))
self.addOutput(OutputRaster(self.OUTPUT, self.tr('Output layer')))
self.addOutput(OutputRaster(self.OUTPUT, self.tr('Clipped (mask)')))

def getConsoleCommands(self):
out = self.getOutputValue(self.OUTPUT)
@@ -74,7 +74,7 @@ def defineCharacteristics(self):
self.addParameter(ParameterSelection(self.RTYPE,
self.tr('Output raster type'), self.TYPE, 5))

self.addOutput(OutputRaster(self.OUTPUT, self.tr('Average')))
self.addOutput(OutputRaster(self.OUTPUT, self.tr('Interpolated moving average')))

def getConsoleCommands(self):
arguments = ['-l']
@@ -59,7 +59,7 @@ def defineCharacteristics(self):
self.tr('Additional creation parameters'), '', optional=True))

self.addOutput(OutputVector(self.OUTPUT_VECTOR,
self.tr('Output file for contour lines (vector)')))
self.tr('Contours')))

def getConsoleCommands(self):
interval = str(self.getParameterValue(self.INTERVAL))
@@ -52,7 +52,7 @@ def defineCharacteristics(self):
'location', optional=True))
self.addParameter(ParameterBoolean(self.PROJ_DIFFERENCE,
self.tr('Skip files with different projection reference'), False))
self.addOutput(OutputVector(gdaltindex.OUTPUT, self.tr('Tiled')))
self.addOutput(OutputVector(gdaltindex.OUTPUT, self.tr('Tile index')))

def getConsoleCommands(self):
fieldName = str(self.getParameterValue(self.FIELD_NAME))
@@ -106,7 +106,7 @@ def defineCharacteristics(self):
self.addParameter(ParameterString(self.OPTIONS,
self.tr('Creation options'), '', optional=True))

self.addOutput(OutputVector(self.OUTPUT_LAYER, self.tr('Output layer')))
self.addOutput(OutputVector(self.OUTPUT_LAYER, self.tr('Converted')))

def getConsoleCommands(self):
inLayer = self.getParameterValue(self.INPUT_LAYER)
@@ -52,7 +52,7 @@ def defineCharacteristics(self):
self.addParameter(ParameterString(self.OPTIONS,
self.tr('Additional creation options'), '', optional=True))

self.addOutput(OutputVector(self.OUTPUT_LAYER, self.tr('Output layer')))
self.addOutput(OutputVector(self.OUTPUT_LAYER, self.tr('Clipped (polygon)')))

def getConsoleCommands(self):
inLayer = self.getParameterValue(self.INPUT_LAYER)
@@ -53,7 +53,7 @@ def defineCharacteristics(self):
self.addParameter(ParameterString(self.OPTIONS,
self.tr('Additional creation options'), '', optional=True))

self.addOutput(OutputVector(self.OUTPUT_LAYER, self.tr('Output layer')))
self.addOutput(OutputVector(self.OUTPUT_LAYER, self.tr('Clipped (extent)')))

def getConsoleCommands(self):
inLayer = self.getParameterValue(self.INPUT_LAYER)
@@ -78,7 +78,7 @@ def defineCharacteristics(self):
self.tr('Additional creation options (see ogr2ogr manual)'),
'', optional=True))

self.addOutput(OutputVector(self.OUTPUT_LAYER, self.tr('Output layer')))
self.addOutput(OutputVector(self.OUTPUT_LAYER, self.tr('Single sided buffer')))

def getConsoleCommands(self):
inLayer = self.getParameterValue(self.INPUT_LAYER)
@@ -59,7 +59,7 @@ def defineCharacteristics(self):
self.tr('Additional creation options (see ogr2ogr manual)'),
'', optional=True))

self.addOutput(OutputVector(self.OUTPUT_LAYER, self.tr('Output layer')))
self.addOutput(OutputVector(self.OUTPUT_LAYER, self.tr('Points along lines')))

def getConsoleCommands(self):
inLayer = self.getParameterValue(self.INPUT_LAYER)
@@ -108,7 +108,7 @@ def defineCharacteristics(self):
self.tr('Force the generation of an associated ESRI world file (.tfw))'), False))
self.addParameter(ParameterString(self.EXTRA,
self.tr('Additional creation parameters'), '', optional=True))
self.addOutput(OutputRaster(self.OUTPUT, self.tr('Translated')))
self.addOutput(OutputRaster(self.OUTPUT, self.tr('Converted')))

def getConsoleCommands(self):
out = self.getOutputValue(translate.OUTPUT)
@@ -50,7 +50,7 @@ def defineCharacteristics(self):
self.addParameter(ParameterBoolean(self.COMPUTE_EDGES,
self.tr('Compute edges'), False))

self.addOutput(OutputRaster(self.OUTPUT, self.tr('Output file')))
self.addOutput(OutputRaster(self.OUTPUT, self.tr('Terrain Ruggedness Index')))

def getConsoleCommands(self):
arguments = ['TRI']
@@ -96,7 +96,7 @@ def defineCharacteristics(self):
self.tr('Force the generation of an associated ESRI world file (.tfw))'), False))
self.addParameter(ParameterString(self.EXTRA,
self.tr('Additional creation parameters'), '', optional=True))
self.addOutput(OutputRaster(self.OUTPUT, self.tr('Warped')))
self.addOutput(OutputRaster(self.OUTPUT, self.tr('Reprojected')))

def getConsoleCommands(self):
noData = str(self.getParameterValue(self.NO_DATA))

0 comments on commit 69ed92b

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