Skip to content

Commit

Permalink
Uniform and informative output names for Processing (GDAL)
Browse files Browse the repository at this point in the history
  • Loading branch information
pcav committed May 18, 2015
1 parent 0277421 commit 69ed92b
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/gdal/ClipByExtent.py
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/gdal/ClipByMask.py
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/gdal/GridAverage.py
Expand Up @@ -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']
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/gdal/contour.py
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/gdal/gdaltindex.py
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/gdal/ogr2ogr.py
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/gdal/ogr2ogrclip.py
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/gdal/ogr2ogrclipextent.py
Expand Up @@ -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)
Expand Down
Expand Up @@ -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)
Expand Down
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/gdal/translate.py
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/gdal/tri.py
Expand Up @@ -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']
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/gdal/warp.py
Expand Up @@ -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))
Expand Down

0 comments on commit 69ed92b

Please sign in to comment.