Skip to content
Permalink
Browse files

[processing] add group id to GDAL algorithms

  • Loading branch information
alexbruy committed Dec 14, 2017
1 parent 5e157c9 commit 53bc147dca006feb14dc903ea23a6e2c4177b127
Showing with 153 additions and 0 deletions.
  1. +3 −0 python/plugins/processing/algs/gdal/AssignProjection.py
  2. +3 −0 python/plugins/processing/algs/gdal/Buffer.py
  3. +3 −0 python/plugins/processing/algs/gdal/ClipRasterByExtent.py
  4. +3 −0 python/plugins/processing/algs/gdal/ClipRasterByMask.py
  5. +3 −0 python/plugins/processing/algs/gdal/ClipVectorByExtent.py
  6. +3 −0 python/plugins/processing/algs/gdal/ClipVectorByMask.py
  7. +3 −0 python/plugins/processing/algs/gdal/ColorRelief.py
  8. +3 −0 python/plugins/processing/algs/gdal/Dissolve.py
  9. +3 −0 python/plugins/processing/algs/gdal/ExecuteSql.py
  10. +3 −0 python/plugins/processing/algs/gdal/GridAverage.py
  11. +3 −0 python/plugins/processing/algs/gdal/GridDataMetrics.py
  12. +3 −0 python/plugins/processing/algs/gdal/GridInverseDistance.py
  13. +3 −0 python/plugins/processing/algs/gdal/GridInverseDistanceNearestNeighbor.py
  14. +3 −0 python/plugins/processing/algs/gdal/GridLinear.py
  15. +3 −0 python/plugins/processing/algs/gdal/GridNearestNeighbor.py
  16. +3 −0 python/plugins/processing/algs/gdal/OffsetCurve.py
  17. +3 −0 python/plugins/processing/algs/gdal/OgrToPostGis.py
  18. +3 −0 python/plugins/processing/algs/gdal/OneSideBuffer.py
  19. +3 −0 python/plugins/processing/algs/gdal/PointsAlongLines.py
  20. +3 −0 python/plugins/processing/algs/gdal/aspect.py
  21. +3 −0 python/plugins/processing/algs/gdal/buildvrt.py
  22. +3 −0 python/plugins/processing/algs/gdal/contour.py
  23. +3 −0 python/plugins/processing/algs/gdal/extractprojection.py
  24. +3 −0 python/plugins/processing/algs/gdal/fillnodata.py
  25. +3 −0 python/plugins/processing/algs/gdal/gdal2tiles.py
  26. +3 −0 python/plugins/processing/algs/gdal/gdal2xyz.py
  27. +3 −0 python/plugins/processing/algs/gdal/gdaladdo.py
  28. +3 −0 python/plugins/processing/algs/gdal/gdalcalc.py
  29. +3 −0 python/plugins/processing/algs/gdal/gdalinfo.py
  30. +3 −0 python/plugins/processing/algs/gdal/gdaltindex.py
  31. +3 −0 python/plugins/processing/algs/gdal/hillshade.py
  32. +3 −0 python/plugins/processing/algs/gdal/merge.py
  33. +3 −0 python/plugins/processing/algs/gdal/nearblack.py
  34. +3 −0 python/plugins/processing/algs/gdal/ogr2ogr.py
  35. +3 −0 python/plugins/processing/algs/gdal/ogr2ogrtabletopostgislist.py
  36. +3 −0 python/plugins/processing/algs/gdal/ogr2ogrtopostgislist.py
  37. +3 −0 python/plugins/processing/algs/gdal/ogrinfo.py
  38. +3 −0 python/plugins/processing/algs/gdal/pct2rgb.py
  39. +3 −0 python/plugins/processing/algs/gdal/polygonize.py
  40. +3 −0 python/plugins/processing/algs/gdal/proximity.py
  41. +3 −0 python/plugins/processing/algs/gdal/rasterize.py
  42. +3 −0 python/plugins/processing/algs/gdal/rasterize_over.py
  43. +3 −0 python/plugins/processing/algs/gdal/retile.py
  44. +3 −0 python/plugins/processing/algs/gdal/rgb2pct.py
  45. +3 −0 python/plugins/processing/algs/gdal/roughness.py
  46. +3 −0 python/plugins/processing/algs/gdal/sieve.py
  47. +3 −0 python/plugins/processing/algs/gdal/slope.py
  48. +3 −0 python/plugins/processing/algs/gdal/tpi.py
  49. +3 −0 python/plugins/processing/algs/gdal/translate.py
  50. +3 −0 python/plugins/processing/algs/gdal/tri.py
  51. +3 −0 python/plugins/processing/algs/gdal/warp.py
@@ -70,6 +70,9 @@ def icon(self):
def group(self):
return self.tr('Raster projections')

def group(self):
return 'rasterprojections'

def getConsoleCommands(self, parameters, context, feedback, executing=True):
inLayer = self.parameterAsRasterLayer(parameters, self.INPUT, context)
fileName = inLayer.source()
@@ -95,6 +95,9 @@ def displayName(self):
def group(self):
return self.tr('Vector geoprocessing')

def groupId(self):
return 'vectorgeoprocessing'

def commandName(self):
return 'ogr2ogr'

@@ -99,6 +99,9 @@ def displayName(self):
def group(self):
return self.tr('Raster extraction')

def groupId(self):
return 'rasterextraction'

def icon(self):
return QIcon(os.path.join(pluginPath, 'images', 'gdaltools', 'raster-clip.png'))

@@ -116,6 +116,9 @@ def icon(self):
def group(self):
return self.tr('Raster extraction')

def groupId(self):
return 'rasterextraction'

def getConsoleCommands(self, parameters, context, feedback, executing=True):
inLayer = self.parameterAsRasterLayer(parameters, self.INPUT, context)

@@ -71,6 +71,9 @@ def displayName(self):
def group(self):
return self.tr('Vector geoprocessing')

def groupId(self):
return 'vectorgeoprocessing'

def commandName(self):
return 'ogr2ogr'

@@ -70,6 +70,9 @@ def displayName(self):
def group(self):
return self.tr('Vector geoprocessing')

def groupId(self):
return 'vectorgeoprocessing'

def commandName(self):
return 'ogr2ogr'

@@ -92,6 +92,9 @@ def displayName(self):
def group(self):
return self.tr('Raster analysis')

def groupId(self):
return 'rasteranalysis'

def getConsoleCommands(self, parameters, context, feedback, executing=True):
arguments = ['color-relief']
inLayer = self.parameterAsRasterLayer(parameters, self.INPUT, context)
@@ -106,6 +106,9 @@ def displayName(self):
def group(self):
return self.tr('Vector geoprocessing')

def groupId(self):
return 'vectorgeoprocessing'

def commandName(self):
return 'ogr2ogr'

@@ -82,6 +82,9 @@ def displayName(self):
def group(self):
return self.tr('Vector miscellaneous')

def groupId(self):
return 'vectormiscellaneous'

def getConsoleCommands(self, parameters, context, feedback, executing=True):
ogrLayer, layerName = self.getOgrCompatibleSource(self.INPUT, parameters, context, feedback, executing)
sql = self.parameterAsString(parameters, self.SQL, context)
@@ -132,6 +132,9 @@ def displayName(self):
def group(self):
return self.tr('Raster analysis')

def groupId(self):
return 'rasteranalysis'

def icon(self):
return QIcon(os.path.join(pluginPath, 'images', 'gdaltools', 'grid.png'))

@@ -149,6 +149,9 @@ def icon(self):
def group(self):
return self.tr('Raster analysis')

def groupId(self):
return 'rasteranalysis'

def getConsoleCommands(self, parameters, context, feedback, executing=True):
ogrLayer, layerName = self.getOgrCompatibleSource(self.INPUT, parameters, context, feedback, executing)

@@ -152,6 +152,9 @@ def displayName(self):
def group(self):
return self.tr('Raster analysis')

def groupId(self):
return 'rasteranalysis'

def icon(self):
return QIcon(os.path.join(pluginPath, 'images', 'gdaltools', 'grid.png'))

@@ -139,6 +139,9 @@ def displayName(self):
def group(self):
return self.tr('Raster analysis')

def groupId(self):
return 'rasteranalysis'

def icon(self):
return QIcon(os.path.join(pluginPath, 'images', 'gdaltools', 'grid.png'))

@@ -114,6 +114,9 @@ def displayName(self):
def group(self):
return self.tr('Raster analysis')

def groupId(self):
return 'rasteranalysis'

def icon(self):
return QIcon(os.path.join(pluginPath, 'images', 'gdaltools', 'grid.png'))

@@ -127,6 +127,9 @@ def displayName(self):
def group(self):
return self.tr('Raster analysis')

def groupId(self):
return 'rasteranalysis'

def icon(self):
return QIcon(os.path.join(pluginPath, 'images', 'gdaltools', 'grid.png'))

@@ -78,6 +78,9 @@ def displayName(self):
def group(self):
return self.tr('Vector geoprocessing')

def groupId(self):
return 'vectorgeoprocessing'

def commandName(self):
return 'ogr2ogr'

@@ -162,6 +162,9 @@ def displayName(self):
def group(self):
return self.tr('Vector miscellaneous')

def groupId(self):
return 'vectormiscellaneous'

def getConnectionString(self, parameters, context):
host = self.parameterAsString(parameters, self.HOST, context)
port = self.parameterAsString(parameters, self.PORT, context)
@@ -104,6 +104,9 @@ def displayName(self):
def group(self):
return self.tr('Vector geoprocessing')

def groupId(self):
return 'vectorgeoprocessing'

def commandName(self):
return 'ogr2ogr'

@@ -83,6 +83,9 @@ def displayName(self):
def group(self):
return self.tr('Vector geoprocessing')

def groupId(self):
return 'vectorgeoprocessing'

def commandName(self):
return 'ogr2ogr'

@@ -93,6 +93,9 @@ def displayName(self):
def group(self):
return self.tr('Raster analysis')

def groupId(self):
return 'rasteranalysis'

def getConsoleCommands(self, parameters, context, feedback, executing=True):
arguments = ['aspect']
inLayer = self.parameterAsRasterLayer(parameters, self.INPUT, context)
@@ -100,6 +100,9 @@ def icon(self):
def group(self):
return self.tr('Raster miscellaneous')

def groupId(self):
return 'rastermiscellaneous'

def getConsoleCommands(self, parameters, context, feedback, executing=True):
arguments = []
arguments.append('-resolution')
@@ -118,6 +118,9 @@ def icon(self):
def group(self):
return self.tr('Raster extraction')

def groupId(self):
return 'rasterextraction'

def getConsoleCommands(self, parameters, context, feedback, executing=True):
inLayer = self.parameterAsRasterLayer(parameters, self.INPUT, context)
fieldName = self.parameterAsString(parameters, self.FIELD_NAME, context)
@@ -63,6 +63,9 @@ def icon(self):
def group(self):
return self.tr('Raster projections')

def groupId(self):
return 'rasterprojections'

def getConsoleCommands(self, parameters, context, feedback, executing=True):
return ["extractprojection"]

@@ -86,6 +86,9 @@ def displayName(self):
def group(self):
return self.tr('Raster analysis')

def groupId(self):
return 'rasteranalysis'

def getConsoleCommands(self, parameters, context, feedback, executing=True):
arguments = []
arguments.append('-md')
@@ -153,6 +153,9 @@ def displayName(self):
def group(self):
return self.tr('Raster miscellaneous')

def groupId(self):
return 'rastermiscellaneous'

def getConsoleCommands(self, parameters, context, feedback, executing=True):
arguments = []

@@ -69,6 +69,9 @@ def displayName(self):
def group(self):
return self.tr('Raster conversion')

def groupId(self):
return 'rasterconversion'

def getConsoleCommands(self, parameters, context, feedback, executing=True):
arguments = []
arguments = []
@@ -99,6 +99,9 @@ def displayName(self):
def group(self):
return self.tr('Raster miscellaneous')

def groupId(self):
return 'rastermiscellaneous'

def icon(self):
return QIcon(os.path.join(pluginPath, 'images', 'gdaltools', 'raster-overview.png'))

@@ -102,6 +102,9 @@ def displayName(self):
def group(self):
return self.tr('Raster miscellaneous')

def groupId(self):
return 'rastermiscellaneous'

def getConsoleCommands(self, parameters, context, feedback, executing=True):
out = self.getOutputValue(self.OUTPUT)
extra = self.getParameterValue(self.EXTRA)
@@ -80,6 +80,9 @@ def displayName(self):
def group(self):
return self.tr('Raster miscellaneous')

def groupId(self):
return 'rastermiscellaneous'

def icon(self):
return QIcon(os.path.join(pluginPath, 'images', 'gdaltools', 'raster-info.png'))

@@ -111,6 +111,9 @@ def displayName(self):
def group(self):
return self.tr('Raster miscellaneous')

def groupId(self):
return 'rastermiscellaneous'

def icon(self):
return QIcon(os.path.join(pluginPath, 'images', 'gdaltools', 'tiles.png'))

@@ -120,6 +120,9 @@ def displayName(self):
def group(self):
return self.tr('Raster analysis')

def groupId(self):
return 'rasteranalysis'

def getConsoleCommands(self, parameters, context, feedback, executing=True):
arguments = ['hillshade']
inLayer = self.parameterAsRasterLayer(parameters, self.INPUT, context)
@@ -98,6 +98,9 @@ def displayName(self):
def group(self):
return self.tr('Raster miscellaneous')

def groupId(self):
return 'rastermiscellaneous'

def icon(self):
return QIcon(os.path.join(pluginPath, 'images', 'gdaltools', 'merge.png'))

@@ -86,6 +86,9 @@ def displayName(self):
def group(self):
return self.tr('Raster analysis')

def groupId(self):
return 'rasteranalysis'

def icon(self):
return QIcon(os.path.join(pluginPath, 'images', 'gdaltools', 'nearblack.png'))

@@ -68,6 +68,9 @@ def displayName(self):
def group(self):
return self.tr('Vector conversion')

def groupId(self):
return 'vectorconversion'

def commandName(self):
return 'ogr2ogr'

@@ -119,6 +119,9 @@ def displayName(self):
def group(self):
return self.tr('Vector miscellaneous')

def groupId(self):
return 'vectormiscellaneous'

def getConsoleCommands(self, parameters, context, feedback, executing=True):
connection = self.DB_CONNECTIONS[self.getParameterValue(self.DATABASE)]
uri = uri_from_name(connection)
@@ -176,6 +176,9 @@ def displayName(self):
def group(self):
return self.tr('Vector miscellaneous')

def groupId(self):
return 'vectormiscellaneous'

def getConsoleCommands(self, parameters, context, feedback, executing=True):
connection = self.parameterAsString(parameters, self.DATABASE, context)
uri = uri_from_name(connection)
@@ -68,6 +68,9 @@ def displayName(self):
def group(self):
return self.tr('Vector miscellaneous')

def group(self):
return 'vectormiscellaneous'

def getConsoleCommands(self, parameters, context, feedback, executing=True):
arguments = ['ogrinfo']
arguments.append('-al')
@@ -71,6 +71,9 @@ def displayName(self):
def group(self):
return self.tr('Raster conversion')

def groupId(self):
return 'rasterconversion'

def icon(self):
return QIcon(os.path.join(pluginPath, 'images', 'gdaltools', '8-to-24-bits.png'))

@@ -79,6 +79,9 @@ def displayName(self):
def group(self):
return self.tr('Raster conversion')

def group(self):
return 'rasterconversion'

def icon(self):
return QIcon(os.path.join(pluginPath, 'images', 'gdaltools', 'polygonize.png'))

@@ -128,6 +128,9 @@ def displayName(self):
def group(self):
return self.tr('Raster analysis')

def groupId(self):
return 'rasteranalysis'

def getConsoleCommands(self, parameters, context, feedback, executing=True):
inLayer = self.parameterAsRasterLayer(parameters, self.INPUT, context)
distance = self.parameterAsDouble(parameters, self.MAX_DISTANCE, context)

0 comments on commit 53bc147

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