Skip to content
Permalink
Browse files
Use formatted name for algorithm names
Avoids conversion of names later and gives clearer separation
between visible names and internal names
  • Loading branch information
nyalldawson committed Apr 3, 2017
1 parent e506ceb commit a0bd46423220a2d87bb78ece7dde73e291d71293
Showing with 219 additions and 244 deletions.
  1. +1 −1 python/plugins/processing/algs/gdal/AssignProjection.py
  2. +1 −1 python/plugins/processing/algs/gdal/ClipByExtent.py
  3. +1 −1 python/plugins/processing/algs/gdal/ClipByMask.py
  4. +1 −1 python/plugins/processing/algs/gdal/ColorRelief.py
  5. +1 −1 python/plugins/processing/algs/gdal/GridAverage.py
  6. +1 −1 python/plugins/processing/algs/gdal/GridDataMetrics.py
  7. +1 −4 python/plugins/processing/algs/gdal/GridInvDist.py
  8. +1 −4 python/plugins/processing/algs/gdal/GridNearest.py
  9. +1 −1 python/plugins/processing/algs/gdal/aspect.py
  10. +1 −1 python/plugins/processing/algs/gdal/buildvrt.py
  11. +1 −1 python/plugins/processing/algs/gdal/contour.py
  12. +1 −1 python/plugins/processing/algs/gdal/extractprojection.py
  13. +1 −1 python/plugins/processing/algs/gdal/fillnodata.py
  14. +0 −3 python/plugins/processing/algs/gdal/gdal2tiles.py
  15. +1 −4 python/plugins/processing/algs/gdal/gdaladdo.py
  16. +1 −1 python/plugins/processing/algs/gdal/gdalcalc.py
  17. +1 −1 python/plugins/processing/algs/gdal/gdaltindex.py
  18. +1 −1 python/plugins/processing/algs/gdal/hillshade.py
  19. +1 −4 python/plugins/processing/algs/gdal/information.py
  20. +1 −1 python/plugins/processing/algs/gdal/merge.py
  21. +1 −1 python/plugins/processing/algs/gdal/nearblack.py
  22. +1 −1 python/plugins/processing/algs/gdal/offsetcurve.py
  23. +1 −1 python/plugins/processing/algs/gdal/ogr2ogr.py
  24. +1 −1 python/plugins/processing/algs/gdal/ogr2ogrbuffer.py
  25. +1 −1 python/plugins/processing/algs/gdal/ogr2ogrclip.py
  26. +1 −1 python/plugins/processing/algs/gdal/ogr2ogrclipextent.py
  27. +1 −1 python/plugins/processing/algs/gdal/ogr2ogrdissolve.py
  28. +1 −1 python/plugins/processing/algs/gdal/ogr2ogrpointsonlines.py
  29. +1 −1 python/plugins/processing/algs/gdal/ogr2ogrtabletopostgislist.py
  30. +1 −1 python/plugins/processing/algs/gdal/ogr2ogrtopostgis.py
  31. +1 −1 python/plugins/processing/algs/gdal/ogr2ogrtopostgislist.py
  32. +1 −4 python/plugins/processing/algs/gdal/ogrinfo.py
  33. +1 −1 python/plugins/processing/algs/gdal/ogrsql.py
  34. +1 −1 python/plugins/processing/algs/gdal/onesidebuffer.py
  35. +1 −1 python/plugins/processing/algs/gdal/pct2rgb.py
  36. +1 −4 python/plugins/processing/algs/gdal/polygonize.py
  37. +1 −4 python/plugins/processing/algs/gdal/proximity.py
  38. +1 −4 python/plugins/processing/algs/gdal/rasterize.py
  39. +1 −4 python/plugins/processing/algs/gdal/rasterize_over.py
  40. +1 −4 python/plugins/processing/algs/gdal/retile.py
  41. +1 −1 python/plugins/processing/algs/gdal/rgb2pct.py
  42. +1 −1 python/plugins/processing/algs/gdal/roughness.py
  43. +1 −1 python/plugins/processing/algs/gdal/sieve.py
  44. +1 −1 python/plugins/processing/algs/gdal/slope.py
  45. +1 −1 python/plugins/processing/algs/gdal/tpi.py
  46. +1 −4 python/plugins/processing/algs/gdal/translate.py
  47. +1 −1 python/plugins/processing/algs/gdal/tri.py
  48. +1 −1 python/plugins/processing/algs/gdal/warp.py
  49. +4 −1 python/plugins/processing/algs/grass7/Grass7Algorithm.py
  50. +1 −1 python/plugins/processing/algs/qgis/AddTableField.py
  51. +1 −1 python/plugins/processing/algs/qgis/Aspect.py
  52. +1 −1 python/plugins/processing/algs/qgis/AutoincrementalField.py
  53. +1 −1 python/plugins/processing/algs/qgis/BarPlot.py
  54. +1 −1 python/plugins/processing/algs/qgis/BasicStatistics.py
  55. +1 −1 python/plugins/processing/algs/qgis/BasicStatisticsNumbers.py
  56. +1 −1 python/plugins/processing/algs/qgis/BasicStatisticsStrings.py
  57. +1 −1 python/plugins/processing/algs/qgis/Boundary.py
  58. +1 −1 python/plugins/processing/algs/qgis/BoundingBox.py
  59. +1 −1 python/plugins/processing/algs/qgis/Centroids.py
  60. +1 −1 python/plugins/processing/algs/qgis/CheckValidity.py
  61. +1 −1 python/plugins/processing/algs/qgis/Clip.py
  62. +1 −1 python/plugins/processing/algs/qgis/ConcaveHull.py
  63. +1 −1 python/plugins/processing/algs/qgis/ConvexHull.py
  64. +1 −1 python/plugins/processing/algs/qgis/CreateAttributeIndex.py
  65. +1 −1 python/plugins/processing/algs/qgis/CreateConstantRaster.py
  66. +1 −1 python/plugins/processing/algs/qgis/Datasources2Vrt.py
  67. +1 −1 python/plugins/processing/algs/qgis/DefineProjection.py
  68. +1 −1 python/plugins/processing/algs/qgis/Delaunay.py
  69. +1 −1 python/plugins/processing/algs/qgis/DeleteColumn.py
  70. +1 −1 python/plugins/processing/algs/qgis/DeleteDuplicateGeometries.py
  71. +1 −1 python/plugins/processing/algs/qgis/DeleteHoles.py
  72. +1 −1 python/plugins/processing/algs/qgis/DensifyGeometries.py
  73. +1 −1 python/plugins/processing/algs/qgis/DensifyGeometriesInterval.py
  74. +1 −1 python/plugins/processing/algs/qgis/Difference.py
  75. +1 −1 python/plugins/processing/algs/qgis/Dissolve.py
  76. +1 −1 python/plugins/processing/algs/qgis/DropGeometry.py
  77. +2 −2 python/plugins/processing/algs/qgis/EliminateSelection.py
  78. +1 −1 python/plugins/processing/algs/qgis/EquivalentNumField.py
  79. +1 −1 python/plugins/processing/algs/qgis/ExecuteSQL.py
  80. +1 −1 python/plugins/processing/algs/qgis/Explode.py
  81. +1 −1 python/plugins/processing/algs/qgis/ExportGeometryInfo.py
  82. +1 −1 python/plugins/processing/algs/qgis/ExtendLines.py
  83. +1 −1 python/plugins/processing/algs/qgis/ExtentFromLayer.py
  84. +1 −1 python/plugins/processing/algs/qgis/ExtractByAttribute.py
  85. +1 −1 python/plugins/processing/algs/qgis/ExtractByExpression.py
  86. +1 −1 python/plugins/processing/algs/qgis/ExtractByLocation.py
  87. +1 −1 python/plugins/processing/algs/qgis/ExtractNodes.py
  88. +1 −1 python/plugins/processing/algs/qgis/ExtractSpecificNodes.py
  89. +1 −1 python/plugins/processing/algs/qgis/FieldPyculator.py
  90. +1 −1 python/plugins/processing/algs/qgis/FieldsCalculator.py
  91. +1 −1 python/plugins/processing/algs/qgis/FieldsMapper.py
  92. +1 −1 python/plugins/processing/algs/qgis/FindProjection.py
  93. +1 −1 python/plugins/processing/algs/qgis/FixGeometry.py
  94. +1 −1 python/plugins/processing/algs/qgis/FixedDistanceBuffer.py
  95. +1 −1 python/plugins/processing/algs/qgis/GeometryByExpression.py
  96. +1 −1 python/plugins/processing/algs/qgis/GeometryConvert.py
  97. +1 −1 python/plugins/processing/algs/qgis/GridLine.py
  98. +1 −1 python/plugins/processing/algs/qgis/GridPolygon.py
  99. +1 −1 python/plugins/processing/algs/qgis/Gridify.py
  100. +1 −1 python/plugins/processing/algs/qgis/Heatmap.py
  101. +1 −1 python/plugins/processing/algs/qgis/Hillshade.py
  102. +1 −1 python/plugins/processing/algs/qgis/HubDistanceLines.py
  103. +1 −1 python/plugins/processing/algs/qgis/HubDistancePoints.py
  104. +1 −1 python/plugins/processing/algs/qgis/HubLines.py
  105. +1 −1 python/plugins/processing/algs/qgis/HypsometricCurves.py
  106. +1 −1 python/plugins/processing/algs/qgis/IdwInterpolation.py
  107. +1 −1 python/plugins/processing/algs/qgis/ImportIntoPostGIS.py
  108. +1 −1 python/plugins/processing/algs/qgis/ImportIntoSpatialite.py
  109. +1 −1 python/plugins/processing/algs/qgis/Intersection.py
  110. +1 −1 python/plugins/processing/algs/qgis/JoinAttributes.py
  111. +1 −1 python/plugins/processing/algs/qgis/LinesIntersection.py
  112. +1 −1 python/plugins/processing/algs/qgis/LinesToPolygons.py
  113. +1 −1 python/plugins/processing/algs/qgis/MeanAndStdDevPlot.py
  114. +1 −1 python/plugins/processing/algs/qgis/MeanCoords.py
  115. +1 −1 python/plugins/processing/algs/qgis/Merge.py
  116. +1 −1 python/plugins/processing/algs/qgis/MergeLines.py
  117. +1 −1 python/plugins/processing/algs/qgis/MultipartToSingleparts.py
  118. +1 −1 python/plugins/processing/algs/qgis/NearestNeighbourAnalysis.py
  119. +1 −1 python/plugins/processing/algs/qgis/OffsetLine.py
  120. +1 −1 python/plugins/processing/algs/qgis/OrientedMinimumBoundingBox.py
  121. +1 −1 python/plugins/processing/algs/qgis/Orthogonalize.py
  122. +1 −1 python/plugins/processing/algs/qgis/PointDistance.py
  123. +1 −1 python/plugins/processing/algs/qgis/PointOnSurface.py
  124. +1 −1 python/plugins/processing/algs/qgis/PointsAlongGeometry.py
  125. +1 −1 python/plugins/processing/algs/qgis/PointsDisplacement.py
  126. +1 −1 python/plugins/processing/algs/qgis/PointsFromLines.py
  127. +1 −1 python/plugins/processing/algs/qgis/PointsFromPolygons.py
  128. +1 −1 python/plugins/processing/algs/qgis/PointsInPolygon.py
  129. +1 −1 python/plugins/processing/algs/qgis/PointsInPolygonUnique.py
  130. +1 −1 python/plugins/processing/algs/qgis/PointsInPolygonWeighted.py
  131. +1 −1 python/plugins/processing/algs/qgis/PointsLayerFromTable.py
  132. +1 −1 python/plugins/processing/algs/qgis/PointsToPaths.py
  133. +1 −1 python/plugins/processing/algs/qgis/PolarPlot.py
  134. +1 −1 python/plugins/processing/algs/qgis/PoleOfInaccessibility.py
  135. +1 −1 python/plugins/processing/algs/qgis/PolygonCentroids.py
  136. +1 −1 python/plugins/processing/algs/qgis/Polygonize.py
  137. +1 −1 python/plugins/processing/algs/qgis/PolygonsToLines.py
  138. +1 −1 python/plugins/processing/algs/qgis/PostGISExecuteSQL.py
  139. +1 −1 python/plugins/processing/algs/qgis/RandomExtract.py
  140. +1 −1 python/plugins/processing/algs/qgis/RandomExtractWithinSubsets.py
  141. +1 −1 python/plugins/processing/algs/qgis/RandomPointsAlongLines.py
  142. +1 −1 python/plugins/processing/algs/qgis/RandomPointsExtent.py
  143. +1 −1 python/plugins/processing/algs/qgis/RandomPointsLayer.py
  144. +1 −1 python/plugins/processing/algs/qgis/RandomPointsPolygonsFixed.py
  145. +1 −1 python/plugins/processing/algs/qgis/RandomPointsPolygonsVariable.py
  146. +1 −1 python/plugins/processing/algs/qgis/RandomSelection.py
  147. +1 −1 python/plugins/processing/algs/qgis/RandomSelectionWithinSubsets.py
  148. +1 −1 python/plugins/processing/algs/qgis/RasterCalculator.py
  149. +1 −1 python/plugins/processing/algs/qgis/RasterLayerHistogram.py
  150. +1 −1 python/plugins/processing/algs/qgis/RasterLayerStatistics.py
  151. +1 −1 python/plugins/processing/algs/qgis/RectanglesOvalsDiamondsFixed.py
  152. +1 −1 python/plugins/processing/algs/qgis/RectanglesOvalsDiamondsVariable.py
  153. +1 −1 python/plugins/processing/algs/qgis/RegularPoints.py
  154. +1 −1 python/plugins/processing/algs/qgis/Relief.py
  155. +1 −1 python/plugins/processing/algs/qgis/RemoveNullGeometry.py
  156. +1 −1 python/plugins/processing/algs/qgis/ReprojectLayer.py
  157. +1 −1 python/plugins/processing/algs/qgis/ReverseLineDirection.py
  158. +1 −1 python/plugins/processing/algs/qgis/Ruggedness.py
  159. +1 −1 python/plugins/processing/algs/qgis/SaveSelectedFeatures.py
  160. +1 −1 python/plugins/processing/algs/qgis/SelectByAttribute.py
  161. +1 −1 python/plugins/processing/algs/qgis/SelectByAttributeSum.py
  162. +1 −1 python/plugins/processing/algs/qgis/SelectByExpression.py
  163. +1 −1 python/plugins/processing/algs/qgis/SelectByLocation.py
  164. +1 −1 python/plugins/processing/algs/qgis/ServiceAreaFromLayer.py
  165. +1 −1 python/plugins/processing/algs/qgis/ServiceAreaFromPoint.py
  166. +1 −1 python/plugins/processing/algs/qgis/SetRasterStyle.py
  167. +1 −1 python/plugins/processing/algs/qgis/SetVectorStyle.py
  168. +1 −1 python/plugins/processing/algs/qgis/ShortestPathLayerToPoint.py
  169. +1 −1 python/plugins/processing/algs/qgis/ShortestPathPointToLayer.py
  170. +1 −1 python/plugins/processing/algs/qgis/ShortestPathPointToPoint.py
  171. +1 −1 python/plugins/processing/algs/qgis/SimplifyGeometries.py
  172. +1 −1 python/plugins/processing/algs/qgis/SinglePartsToMultiparts.py
  173. +1 −1 python/plugins/processing/algs/qgis/SingleSidedBuffer.py
  174. +1 −1 python/plugins/processing/algs/qgis/Slope.py
  175. +1 −1 python/plugins/processing/algs/qgis/Smooth.py
  176. +1 −1 python/plugins/processing/algs/qgis/SnapGeometries.py
  177. +1 −1 python/plugins/processing/algs/qgis/SpatialIndex.py
  178. +1 −1 python/plugins/processing/algs/qgis/SpatialJoin.py
  179. +1 −1 python/plugins/processing/algs/qgis/SpatialiteExecuteSQL.py
  180. +1 −1 python/plugins/processing/algs/qgis/SplitLinesWithLines.py
  181. +1 −1 python/plugins/processing/algs/qgis/SplitWithLines.py
  182. +1 −1 python/plugins/processing/algs/qgis/StatisticsByCategories.py
  183. +1 −1 python/plugins/processing/algs/qgis/SumLines.py
  184. +1 −1 python/plugins/processing/algs/qgis/SymmetricalDifference.py
  185. +1 −1 python/plugins/processing/algs/qgis/TextToFloat.py
  186. +1 −1 python/plugins/processing/algs/qgis/TinInterpolation.py
  187. +1 −1 python/plugins/processing/algs/qgis/TopoColors.py
  188. +1 −1 python/plugins/processing/algs/qgis/Translate.py
  189. +1 −1 python/plugins/processing/algs/qgis/TruncateTable.py
  190. +1 −1 python/plugins/processing/algs/qgis/Union.py
  191. +1 −1 python/plugins/processing/algs/qgis/UniqueValues.py
  192. +1 −1 python/plugins/processing/algs/qgis/VariableDistanceBuffer.py
  193. +1 −1 python/plugins/processing/algs/qgis/VectorGridLines.py
  194. +1 −1 python/plugins/processing/algs/qgis/VectorGridPolygons.py
  195. +1 −1 python/plugins/processing/algs/qgis/VectorLayerHistogram.py
  196. +1 −1 python/plugins/processing/algs/qgis/VectorLayerScatterplot.py
  197. +1 −1 python/plugins/processing/algs/qgis/VectorSplit.py
  198. +1 −1 python/plugins/processing/algs/qgis/VoronoiPolygons.py
  199. +1 −1 python/plugins/processing/algs/qgis/ZonalStatistics.py
  200. +1 −1 python/plugins/processing/algs/qgis/ZonalStatisticsQgis.py
  201. +6 −1 python/plugins/processing/algs/r/RAlgorithm.py
  202. +6 −0 python/plugins/processing/algs/saga/SagaAlgorithm.py
  203. +1 −1 python/plugins/processing/algs/saga/SplitRGBBands.py
  204. +1 −5 python/plugins/processing/core/GeoAlgorithm.py
  205. +2 −1 src/core/processing/qgsprocessingalgorithm.h
@@ -47,7 +47,7 @@ class AssignProjection(GdalAlgorithm):
OUTPUT = 'OUTPUT'

def name(self):
return 'Assign projection'
return 'assignprojection'

def displayName(self):
return self.tr('Assign projection')
@@ -54,7 +54,7 @@ class ClipByExtent(GdalAlgorithm):
TYPE = ['Byte', 'Int16', 'UInt16', 'UInt32', 'Int32', 'Float32', 'Float64']

def name(self):
return 'Clip raster by extent'
return 'cliprasterbyextent'

def displayName(self):
return self.tr('Clip raster by extent')
@@ -63,7 +63,7 @@ class ClipByMask(GdalAlgorithm):
TYPE = ['Byte', 'Int16', 'UInt16', 'UInt32', 'Int32', 'Float32', 'Float64']

def name(self):
return 'Clip raster by mask layer'
return 'cliprasterbymasklayer'

def displayName(self):
return self.tr('Clip raster by mask layer')
@@ -48,7 +48,7 @@ class ColorRelief(GdalAlgorithm):
MATCHING_MODES = ['"0,0,0,0" RGBA', 'Exact color', 'Nearest color']

def name(self):
return 'Color relief'
return 'colorrelief'

def displayName(self):
return self.tr('Color relief')
@@ -57,7 +57,7 @@ class GridAverage(GdalAlgorithm):
TYPE = ['Byte', 'Int16', 'UInt16', 'UInt32', 'Int32', 'Float32', 'Float64']

def name(self):
return 'Grid (Moving average)'
return 'gridmovingaverage'

def displayName(self):
return self.tr('Grid (Moving average)')
@@ -62,7 +62,7 @@ class GridDataMetrics(GdalAlgorithm):
'Average distance between points']

def name(self):
return 'Grid (Data metrics)'
return 'griddatametrics'

def displayName(self):
return self.tr('Grid (Data metrics)')
@@ -63,11 +63,8 @@ class GridInvDist(GdalAlgorithm):
def icon(self):
return QIcon(os.path.join(pluginPath, 'images', 'gdaltools', 'grid.png'))

def commandLineName(self):
return "gdal:gridinvdist"

def name(self):
return 'Grid (Inverse distance to a power)'
return 'gridinvdist'

def displayName(self):
return self.tr('Grid (Inverse distance to a power)')
@@ -59,11 +59,8 @@ class GridNearest(GdalAlgorithm):
def icon(self):
return QIcon(os.path.join(pluginPath, 'images', 'gdaltools', 'grid.png'))

def commandLineName(self):
return "gdal:gridnearestneighbor"

def name(self):
return 'Grid (Nearest neighbor)'
return 'gridnearestneighbor'

def displayName(self):
return self.tr('Grid (Nearest neighbor)')
@@ -49,7 +49,7 @@ class aspect(GdalAlgorithm):
OUTPUT = 'OUTPUT'

def name(self):
return 'Aspect'
return 'aspect'

def displayName(self):
return self.tr('Aspect')
@@ -52,7 +52,7 @@ class buildvrt(GdalAlgorithm):
RESOLUTION_OPTIONS = ['average', 'highest', 'lowest']

def name(self):
return 'Build Virtual Raster'
return 'buildvirtualraster'

def displayName(self):
return self.tr('Build Virtual Raster')
@@ -52,7 +52,7 @@ class contour(GdalAlgorithm):
EXTRA = 'EXTRA'

def name(self):
return 'Contour'
return 'contour'

def displayName(self):
return self.tr('Contour')
@@ -45,7 +45,7 @@ class ExtractProjection(GdalAlgorithm):
PRJ_FILE = 'PRJ_FILE'

def name(self):
return 'Extract projection'
return 'extractprojection'

def displayName(self):
return self.tr('Extract projection')
@@ -53,7 +53,7 @@ class fillnodata(GdalAlgorithm):
OUTPUT = 'OUTPUT'

def name(self):
return 'Fill nodata'
return 'fillnodata'

def displayName(self):
return self.tr('Fill nodata')
@@ -60,9 +60,6 @@ class gdal2tiles(GdalAlgorithm):
RESAMPLINGS = ['average', 'near', 'bilinear', 'cubic', 'cubicspline', 'lanczos', 'antialias']
WEBVIEWERS = ['all', 'google', 'openlayers', 'leaflet', 'none']

def commandLineName(self):
return "gdal:gdal2tiles"

def name(self):
return 'gdal2tiles'

@@ -66,11 +66,8 @@ class gdaladdo(GdalAlgorithm):
def icon(self):
return QIcon(os.path.join(pluginPath, 'images', 'gdaltools', 'raster-overview.png'))

def commandLineName(self):
return "gdal:overviews"

def name(self):
return 'Build overviews (pyramids)'
return 'overviews'

def displayName(self):
return self.tr('Build overviews (pyramids)')
@@ -60,7 +60,7 @@ class gdalcalc(GdalAlgorithm):
#DEBUG = 'DEBUG'

def name(self):
return 'Raster calculator'
return 'rastercalculator'

def displayName(self):
return self.tr('Raster calculator')
@@ -49,7 +49,7 @@ class gdaltindex(GdalAlgorithm):
PROJ_DIFFERENCE = 'PROJ_DIFFERENCE'

def name(self):
return 'Tile Index'
return 'tileindex'

def displayName(self):
return self.tr('Tile Index')
@@ -52,7 +52,7 @@ class hillshade(GdalAlgorithm):
OUTPUT = 'OUTPUT'

def name(self):
return 'Hillshade'
return 'hillshade'

def displayName(self):
return self.tr('Hillshade')
@@ -49,11 +49,8 @@ class information(GdalAlgorithm):
def icon(self):
return QIcon(os.path.join(pluginPath, 'images', 'gdaltools', 'raster-info.png'))

def commandLineName(self):
return "gdal:gdalinfo"

def name(self):
return 'Information'
return 'gdalinfo'

def displayName(self):
return self.tr('Information')
@@ -58,7 +58,7 @@ def icon(self):
return QIcon(os.path.join(pluginPath, 'images', 'gdaltools', 'merge.png'))

def name(self):
return 'Merge'
return 'merge'

def displayName(self):
return self.tr('Merge')
@@ -51,7 +51,7 @@ def icon(self):
return QIcon(os.path.join(pluginPath, 'images', 'gdaltools', 'nearblack.png'))

def name(self):
return 'Near black'
return 'nearblack'

def displayName(self):
return self.tr('Near black')
@@ -47,7 +47,7 @@ class OffsetCurve(GdalAlgorithm):
OPTIONS = 'OPTIONS'

def name(self):
return 'Offset lines for lines'
return 'offsetlinesforlines'

def displayName(self):
return self.tr('Offset lines for lines')
@@ -101,7 +101,7 @@ class Ogr2Ogr(GdalAlgorithm):
OPTIONS = 'OPTIONS'

def name(self):
return 'Convert format'
return 'convertformat'

def displayName(self):
return self.tr('Convert format')
@@ -52,7 +52,7 @@ class Ogr2OgrBuffer(GdalAlgorithm):
OPTIONS = 'OPTIONS'

def name(self):
return 'Buffer vectors'
return 'buffervectors'

def displayName(self):
return self.tr('Buffer vectors')
@@ -46,7 +46,7 @@ class Ogr2OgrClip(GdalAlgorithm):
OPTIONS = 'OPTIONS'

def name(self):
return 'Clip vectors by polygon'
return 'clipvectorsbypolygon'

def displayName(self):
return self.tr('Clip vectors by polygon')
@@ -46,7 +46,7 @@ class Ogr2OgrClipExtent(GdalAlgorithm):
OPTIONS = 'OPTIONS'

def name(self):
return 'Clip vectors by extent'
return 'clipvectorsbyextent'

def displayName(self):
return self.tr('Clip vectors by extent')
@@ -54,7 +54,7 @@ class Ogr2OgrDissolve(GdalAlgorithm):
OPTIONS = 'OPTIONS'

def name(self):
return 'Dissolve polygons'
return 'dissolvepolygons'

def displayName(self):
return self.tr('Dissolve polygons')
@@ -48,7 +48,7 @@ class Ogr2OgrPointsOnLines(GdalAlgorithm):
OPTIONS = 'OPTIONS'

def name(self):
return 'Create points along lines'
return 'createpointsalonglines'

def displayName(self):
return self.tr('Create points along lines')
@@ -76,7 +76,7 @@ def dbConnectionNames(self):
return settings.childGroups()

def name(self):
return 'Import layer/table as geometryless table into PostgreSQL database'
return 'importlayertableasgeometrylesstableintopostgresqldatabase'

def displayName(self):
return self.tr('Import layer/table as geometryless table into PostgreSQL database')
@@ -79,7 +79,7 @@ class Ogr2OgrToPostGis(GdalAlgorithm):
OPTIONS = 'OPTIONS'

def name(self):
return 'Import Vector into PostGIS database (new connection)'
return 'importvectorintopostgisdatabasenewconnection'

def displayName(self):
return self.tr('Import Vector into PostGIS database (new connection)')
@@ -85,7 +85,7 @@ def __init__(self):
self.processing = False

def name(self):
return 'Import Vector into PostGIS database (available connections)'
return 'importvectorintopostgisdatabaseavailableconnections'

def displayName(self):
return self.tr('Import Vector into PostGIS database (available connections)')
@@ -43,11 +43,8 @@ class OgrInfo(GdalAlgorithm):
SUMMARY_ONLY = 'SUMMARY_ONLY'
OUTPUT = 'OUTPUT'

def commandLineName(self):
return "gdal:ogrinfo"

def name(self):
return 'Information'
return 'ogrinfo'

def displayName(self):
return self.tr('Information')
@@ -48,7 +48,7 @@ class OgrSql(GdalAlgorithm):
DIALECT = 'DIALECT'

def name(self):
return 'Execute SQL'
return 'executesql'

def displayName(self):
return self.tr('Execute SQL')