Skip to content
Permalink
Browse files

Merge pull request #5867 from alexbruy/processing-group

[processing] add groupId() method to get untranslated algorithm group
  • Loading branch information
nyalldawson committed Dec 15, 2017
2 parents abdd875 + 2674022 commit db07bc6c07294dedfbae2b971ce0c5f84edf6a63
Showing with 841 additions and 6 deletions.
  1. +3 −1 python/core/processing/models/qgsprocessingmodelalgorithm.sip
  2. +10 −0 python/core/processing/qgsprocessingalgorithm.sip
  3. +3 −0 python/plugins/processing/algs/gdal/AssignProjection.py
  4. +3 −0 python/plugins/processing/algs/gdal/Buffer.py
  5. +3 −0 python/plugins/processing/algs/gdal/ClipRasterByExtent.py
  6. +3 −0 python/plugins/processing/algs/gdal/ClipRasterByMask.py
  7. +3 −0 python/plugins/processing/algs/gdal/ClipVectorByExtent.py
  8. +3 −0 python/plugins/processing/algs/gdal/ClipVectorByMask.py
  9. +3 −0 python/plugins/processing/algs/gdal/ColorRelief.py
  10. +3 −0 python/plugins/processing/algs/gdal/Dissolve.py
  11. +3 −0 python/plugins/processing/algs/gdal/ExecuteSql.py
  12. +3 −0 python/plugins/processing/algs/gdal/GridAverage.py
  13. +3 −0 python/plugins/processing/algs/gdal/GridDataMetrics.py
  14. +3 −0 python/plugins/processing/algs/gdal/GridInverseDistance.py
  15. +3 −0 python/plugins/processing/algs/gdal/GridInverseDistanceNearestNeighbor.py
  16. +3 −0 python/plugins/processing/algs/gdal/GridLinear.py
  17. +3 −0 python/plugins/processing/algs/gdal/GridNearestNeighbor.py
  18. +3 −0 python/plugins/processing/algs/gdal/OffsetCurve.py
  19. +3 −0 python/plugins/processing/algs/gdal/OgrToPostGis.py
  20. +3 −0 python/plugins/processing/algs/gdal/OneSideBuffer.py
  21. +3 −0 python/plugins/processing/algs/gdal/PointsAlongLines.py
  22. +3 −0 python/plugins/processing/algs/gdal/aspect.py
  23. +3 −0 python/plugins/processing/algs/gdal/buildvrt.py
  24. +3 −0 python/plugins/processing/algs/gdal/contour.py
  25. +3 −0 python/plugins/processing/algs/gdal/extractprojection.py
  26. +3 −0 python/plugins/processing/algs/gdal/fillnodata.py
  27. +3 −0 python/plugins/processing/algs/gdal/gdal2tiles.py
  28. +3 −0 python/plugins/processing/algs/gdal/gdal2xyz.py
  29. +3 −0 python/plugins/processing/algs/gdal/gdaladdo.py
  30. +3 −0 python/plugins/processing/algs/gdal/gdalcalc.py
  31. +3 −0 python/plugins/processing/algs/gdal/gdalinfo.py
  32. +3 −0 python/plugins/processing/algs/gdal/gdaltindex.py
  33. +3 −0 python/plugins/processing/algs/gdal/hillshade.py
  34. +3 −0 python/plugins/processing/algs/gdal/merge.py
  35. +3 −0 python/plugins/processing/algs/gdal/nearblack.py
  36. +3 −0 python/plugins/processing/algs/gdal/ogr2ogr.py
  37. +3 −0 python/plugins/processing/algs/gdal/ogr2ogrtabletopostgislist.py
  38. +3 −0 python/plugins/processing/algs/gdal/ogr2ogrtopostgislist.py
  39. +3 −0 python/plugins/processing/algs/gdal/ogrinfo.py
  40. +3 −0 python/plugins/processing/algs/gdal/pct2rgb.py
  41. +3 −0 python/plugins/processing/algs/gdal/polygonize.py
  42. +3 −0 python/plugins/processing/algs/gdal/proximity.py
  43. +3 −0 python/plugins/processing/algs/gdal/rasterize.py
  44. +3 −0 python/plugins/processing/algs/gdal/rasterize_over.py
  45. +3 −0 python/plugins/processing/algs/gdal/retile.py
  46. +3 −0 python/plugins/processing/algs/gdal/rgb2pct.py
  47. +3 −0 python/plugins/processing/algs/gdal/roughness.py
  48. +3 −0 python/plugins/processing/algs/gdal/sieve.py
  49. +3 −0 python/plugins/processing/algs/gdal/slope.py
  50. +3 −0 python/plugins/processing/algs/gdal/tpi.py
  51. +3 −0 python/plugins/processing/algs/gdal/translate.py
  52. +3 −0 python/plugins/processing/algs/gdal/tri.py
  53. +3 −0 python/plugins/processing/algs/gdal/warp.py
  54. +7 −0 python/plugins/processing/algs/grass7/Grass7Algorithm.py
  55. +3 −0 python/plugins/processing/algs/qgis/AddTableField.py
  56. +3 −0 python/plugins/processing/algs/qgis/Aggregate.py
  57. +3 −0 python/plugins/processing/algs/qgis/Aspect.py
  58. +3 −0 python/plugins/processing/algs/qgis/BarPlot.py
  59. +3 −0 python/plugins/processing/algs/qgis/BasicStatistics.py
  60. +3 −0 python/plugins/processing/algs/qgis/BoxPlot.py
  61. +3 −0 python/plugins/processing/algs/qgis/CheckValidity.py
  62. +3 −0 python/plugins/processing/algs/qgis/ConcaveHull.py
  63. +3 −0 python/plugins/processing/algs/qgis/CreateAttributeIndex.py
  64. +3 −0 python/plugins/processing/algs/qgis/CreateConstantRaster.py
  65. +3 −0 python/plugins/processing/algs/qgis/Datasources2Vrt.py
  66. +3 −0 python/plugins/processing/algs/qgis/DefineProjection.py
  67. +3 −0 python/plugins/processing/algs/qgis/Delaunay.py
  68. +3 −0 python/plugins/processing/algs/qgis/DeleteColumn.py
  69. +3 −0 python/plugins/processing/algs/qgis/DeleteDuplicateGeometries.py
  70. +3 −0 python/plugins/processing/algs/qgis/DeleteHoles.py
  71. +3 −0 python/plugins/processing/algs/qgis/DensifyGeometries.py
  72. +3 −0 python/plugins/processing/algs/qgis/DensifyGeometriesInterval.py
  73. +3 −0 python/plugins/processing/algs/qgis/Difference.py
  74. +3 −0 python/plugins/processing/algs/qgis/EliminateSelection.py
  75. +3 −0 python/plugins/processing/algs/qgis/EquivalentNumField.py
  76. +3 −0 python/plugins/processing/algs/qgis/ExecuteSQL.py
  77. +3 −0 python/plugins/processing/algs/qgis/Explode.py
  78. +3 −0 python/plugins/processing/algs/qgis/ExportGeometryInfo.py
  79. +3 −0 python/plugins/processing/algs/qgis/ExtendLines.py
  80. +3 −0 python/plugins/processing/algs/qgis/ExtentFromLayer.py
  81. +3 −0 python/plugins/processing/algs/qgis/ExtractSpecificNodes.py
  82. +3 −0 python/plugins/processing/algs/qgis/FieldPyculator.py
  83. +3 −0 python/plugins/processing/algs/qgis/FieldsCalculator.py
  84. +3 −0 python/plugins/processing/algs/qgis/FieldsMapper.py
  85. +3 −0 python/plugins/processing/algs/qgis/FindProjection.py
  86. +3 −0 python/plugins/processing/algs/qgis/FixedDistanceBuffer.py
  87. +3 −0 python/plugins/processing/algs/qgis/GeometryByExpression.py
  88. +3 −0 python/plugins/processing/algs/qgis/GeometryConvert.py
  89. +3 −0 python/plugins/processing/algs/qgis/GridLine.py
  90. +3 −0 python/plugins/processing/algs/qgis/GridPolygon.py
  91. +3 −0 python/plugins/processing/algs/qgis/Heatmap.py
  92. +3 −0 python/plugins/processing/algs/qgis/Hillshade.py
  93. +3 −0 python/plugins/processing/algs/qgis/HubDistanceLines.py
  94. +3 −0 python/plugins/processing/algs/qgis/HubDistancePoints.py
  95. +3 −0 python/plugins/processing/algs/qgis/HypsometricCurves.py
  96. +3 −0 python/plugins/processing/algs/qgis/IdwInterpolation.py
  97. +3 −0 python/plugins/processing/algs/qgis/ImportIntoPostGIS.py
  98. +3 −0 python/plugins/processing/algs/qgis/ImportIntoSpatialite.py
  99. +3 −0 python/plugins/processing/algs/qgis/Intersection.py
  100. +3 −0 python/plugins/processing/algs/qgis/LinesToPolygons.py
  101. +3 −0 python/plugins/processing/algs/qgis/MeanAndStdDevPlot.py
  102. +3 −0 python/plugins/processing/algs/qgis/MinimumBoundingGeometry.py
  103. +3 −0 python/plugins/processing/algs/qgis/NearestNeighbourAnalysis.py
  104. +3 −0 python/plugins/processing/algs/qgis/OffsetLine.py
  105. +3 −0 python/plugins/processing/algs/qgis/Orthogonalize.py
  106. +3 −0 python/plugins/processing/algs/qgis/PointDistance.py
  107. +3 −0 python/plugins/processing/algs/qgis/PointOnSurface.py
  108. +3 −0 python/plugins/processing/algs/qgis/PointsAlongGeometry.py
  109. +3 −0 python/plugins/processing/algs/qgis/PointsDisplacement.py
  110. +3 −0 python/plugins/processing/algs/qgis/PointsFromLines.py
  111. +3 −0 python/plugins/processing/algs/qgis/PointsFromPolygons.py
  112. +3 −0 python/plugins/processing/algs/qgis/PointsInPolygon.py
  113. +3 −0 python/plugins/processing/algs/qgis/PointsLayerFromTable.py
  114. +3 −0 python/plugins/processing/algs/qgis/PointsToPaths.py
  115. +3 −0 python/plugins/processing/algs/qgis/PolarPlot.py
  116. +3 −0 python/plugins/processing/algs/qgis/PoleOfInaccessibility.py
  117. +3 −0 python/plugins/processing/algs/qgis/Polygonize.py
  118. +3 −0 python/plugins/processing/algs/qgis/PolygonsToLines.py
  119. +3 −0 python/plugins/processing/algs/qgis/PostGISExecuteSQL.py
  120. +3 −0 python/plugins/processing/algs/qgis/RandomExtract.py
  121. +3 −0 python/plugins/processing/algs/qgis/RandomExtractWithinSubsets.py
  122. +3 −0 python/plugins/processing/algs/qgis/RandomPointsAlongLines.py
  123. +3 −0 python/plugins/processing/algs/qgis/RandomPointsExtent.py
  124. +3 −0 python/plugins/processing/algs/qgis/RandomPointsLayer.py
  125. +3 −0 python/plugins/processing/algs/qgis/RandomPointsPolygons.py
  126. +3 −0 python/plugins/processing/algs/qgis/RandomSelection.py
  127. +3 −0 python/plugins/processing/algs/qgis/RandomSelectionWithinSubsets.py
  128. +4 −2 python/plugins/processing/algs/qgis/RasterCalculator.py
  129. +3 −0 python/plugins/processing/algs/qgis/RasterLayerHistogram.py
  130. +3 −0 python/plugins/processing/algs/qgis/RasterLayerStatistics.py
  131. +3 −0 python/plugins/processing/algs/qgis/Rasterize.py
  132. +3 −0 python/plugins/processing/algs/qgis/RectanglesOvalsDiamondsFixed.py
  133. +3 −0 python/plugins/processing/algs/qgis/RectanglesOvalsDiamondsVariable.py
  134. +3 −0 python/plugins/processing/algs/qgis/RegularPoints.py
  135. +3 −0 python/plugins/processing/algs/qgis/Relief.py
  136. +3 −0 python/plugins/processing/algs/qgis/ReverseLineDirection.py
  137. +3 −0 python/plugins/processing/algs/qgis/Ruggedness.py
  138. +3 −0 python/plugins/processing/algs/qgis/SelectByAttribute.py
  139. +3 −0 python/plugins/processing/algs/qgis/SelectByExpression.py
  140. +3 −0 python/plugins/processing/algs/qgis/ServiceAreaFromLayer.py
  141. +3 −0 python/plugins/processing/algs/qgis/ServiceAreaFromPoint.py
  142. +3 −0 python/plugins/processing/algs/qgis/SetMValue.py
  143. +3 −0 python/plugins/processing/algs/qgis/SetRasterStyle.py
  144. +3 −0 python/plugins/processing/algs/qgis/SetVectorStyle.py
  145. +3 −0 python/plugins/processing/algs/qgis/SetZValue.py
  146. +3 −0 python/plugins/processing/algs/qgis/ShortestPathLayerToPoint.py
  147. +3 −0 python/plugins/processing/algs/qgis/ShortestPathPointToLayer.py
  148. +3 −0 python/plugins/processing/algs/qgis/ShortestPathPointToPoint.py
  149. +3 −0 python/plugins/processing/algs/qgis/SingleSidedBuffer.py
  150. +3 −0 python/plugins/processing/algs/qgis/Slope.py
  151. +3 −0 python/plugins/processing/algs/qgis/SnapGeometries.py
  152. +3 −0 python/plugins/processing/algs/qgis/SpatialIndex.py
  153. +3 −0 python/plugins/processing/algs/qgis/SpatialJoin.py
  154. +3 −0 python/plugins/processing/algs/qgis/SpatialJoinSummary.py
  155. +3 −0 python/plugins/processing/algs/qgis/SpatialiteExecuteSQL.py
  156. +3 −0 python/plugins/processing/algs/qgis/StatisticsByCategories.py
  157. +3 −0 python/plugins/processing/algs/qgis/SumLines.py
  158. +3 −0 python/plugins/processing/algs/qgis/SymmetricalDifference.py
  159. +3 −0 python/plugins/processing/algs/qgis/TextToFloat.py
  160. +3 −0 python/plugins/processing/algs/qgis/TinInterpolation.py
  161. +3 −0 python/plugins/processing/algs/qgis/TopoColors.py
  162. +3 −0 python/plugins/processing/algs/qgis/TruncateTable.py
  163. +3 −0 python/plugins/processing/algs/qgis/Union.py
  164. +3 −0 python/plugins/processing/algs/qgis/UniqueValues.py
  165. +3 −0 python/plugins/processing/algs/qgis/VariableDistanceBuffer.py
  166. +3 −0 python/plugins/processing/algs/qgis/VectorLayerHistogram.py
  167. +3 −0 python/plugins/processing/algs/qgis/VectorLayerScatterplot.py
  168. +3 −0 python/plugins/processing/algs/qgis/VectorLayerScatterplot3D.py
  169. +3 −0 python/plugins/processing/algs/qgis/VectorSplit.py
  170. +3 −0 python/plugins/processing/algs/qgis/VoronoiPolygons.py
  171. +3 −0 python/plugins/processing/algs/qgis/ZonalStatistics.py
  172. +8 −0 python/plugins/processing/algs/saga/SagaAlgorithm.py
  173. +5 −0 python/plugins/processing/script/ScriptAlgorithm.py
  174. +5 −0 src/analysis/processing/qgsalgorithmaddincrementalfield.cpp
  175. +1 −0 src/analysis/processing/qgsalgorithmaddincrementalfield.h
  176. +5 −0 src/analysis/processing/qgsalgorithmassignprojection.cpp
  177. +1 −0 src/analysis/processing/qgsalgorithmassignprojection.h
  178. +5 −0 src/analysis/processing/qgsalgorithmboundary.cpp
  179. +1 −0 src/analysis/processing/qgsalgorithmboundary.h
  180. +5 −0 src/analysis/processing/qgsalgorithmboundingbox.cpp
  181. +1 −0 src/analysis/processing/qgsalgorithmboundingbox.h
  182. +5 −0 src/analysis/processing/qgsalgorithmbuffer.cpp
  183. +1 −0 src/analysis/processing/qgsalgorithmbuffer.h
  184. +5 −0 src/analysis/processing/qgsalgorithmcentroid.cpp
  185. +1 −0 src/analysis/processing/qgsalgorithmcentroid.h
  186. +5 −0 src/analysis/processing/qgsalgorithmclip.cpp
  187. +1 −0 src/analysis/processing/qgsalgorithmclip.h
  188. +5 −0 src/analysis/processing/qgsalgorithmconvexhull.cpp
  189. +1 −0 src/analysis/processing/qgsalgorithmconvexhull.h
  190. +10 −0 src/analysis/processing/qgsalgorithmdissolve.cpp
  191. +2 −0 src/analysis/processing/qgsalgorithmdissolve.h
  192. +5 −0 src/analysis/processing/qgsalgorithmdropgeometry.cpp
  193. +1 −0 src/analysis/processing/qgsalgorithmdropgeometry.h
  194. +5 −0 src/analysis/processing/qgsalgorithmdropmzvalues.cpp
  195. +1 −0 src/analysis/processing/qgsalgorithmdropmzvalues.h
  196. +1 −0 src/analysis/processing/qgsalgorithmextenttolayer.h
  197. +5 −0 src/analysis/processing/qgsalgorithmextractbyattribute.cpp
  198. +1 −0 src/analysis/processing/qgsalgorithmextractbyattribute.h
  199. +5 −0 src/analysis/processing/qgsalgorithmextractbyexpression.cpp
  200. +1 −0 src/analysis/processing/qgsalgorithmextractbyexpression.h
  201. +5 −0 src/analysis/processing/qgsalgorithmextractbyextent.cpp
  202. +1 −0 src/analysis/processing/qgsalgorithmextractbyextent.h
  203. +10 −0 src/analysis/processing/qgsalgorithmextractbylocation.cpp
  204. +2 −0 src/analysis/processing/qgsalgorithmextractbylocation.h
  205. +5 −0 src/analysis/processing/qgsalgorithmextractnodes.cpp
  206. +1 −0 src/analysis/processing/qgsalgorithmextractnodes.h
  207. +5 −0 src/analysis/processing/qgsalgorithmfiledownloader.cpp
  208. +1 −0 src/analysis/processing/qgsalgorithmfiledownloader.h
  209. +5 −0 src/analysis/processing/qgsalgorithmfixgeometries.cpp
  210. +1 −0 src/analysis/processing/qgsalgorithmfixgeometries.h
  211. +5 −0 src/analysis/processing/qgsalgorithmjoinbyattribute.cpp
  212. +1 −0 src/analysis/processing/qgsalgorithmjoinbyattribute.h
  213. +5 −0 src/analysis/processing/qgsalgorithmjoinwithlines.cpp
  214. +1 −0 src/analysis/processing/qgsalgorithmjoinwithlines.h
  215. +5 −0 src/analysis/processing/qgsalgorithmlineintersection.cpp
  216. +1 −0 src/analysis/processing/qgsalgorithmlineintersection.h
  217. +5 −0 src/analysis/processing/qgsalgorithmloadlayer.cpp
  218. +1 −0 src/analysis/processing/qgsalgorithmloadlayer.h
  219. +5 −0 src/analysis/processing/qgsalgorithmmeancoordinates.cpp
  220. +1 −0 src/analysis/processing/qgsalgorithmmeancoordinates.h
  221. +5 −0 src/analysis/processing/qgsalgorithmmergelines.cpp
  222. +1 −0 src/analysis/processing/qgsalgorithmmergelines.h
  223. +5 −0 src/analysis/processing/qgsalgorithmmergevector.cpp
  224. +1 −0 src/analysis/processing/qgsalgorithmmergevector.h
  225. +5 −0 src/analysis/processing/qgsalgorithmminimumenclosingcircle.cpp
  226. +1 −0 src/analysis/processing/qgsalgorithmminimumenclosingcircle.h
  227. +5 −0 src/analysis/processing/qgsalgorithmmultiparttosinglepart.cpp
  228. +1 −0 src/analysis/processing/qgsalgorithmmultiparttosinglepart.h
  229. +5 −0 src/analysis/processing/qgsalgorithmorderbyexpression.cpp
  230. +1 −0 src/analysis/processing/qgsalgorithmorderbyexpression.h
  231. +5 −0 src/analysis/processing/qgsalgorithmorientedminimumboundingbox.cpp
  232. +1 −0 src/analysis/processing/qgsalgorithmorientedminimumboundingbox.h
  233. +5 −0 src/analysis/processing/qgsalgorithmpackage.cpp
  234. +1 −0 src/analysis/processing/qgsalgorithmpackage.h
  235. +5 −0 src/analysis/processing/qgsalgorithmpromotetomultipart.cpp
  236. +1 −0 src/analysis/processing/qgsalgorithmpromotetomultipart.h
  237. +4 −0 src/analysis/processing/qgsalgorithmrasterlayeruniquevalues.cpp
  238. +1 −0 src/analysis/processing/qgsalgorithmrasterlayeruniquevalues.h
  239. +5 −0 src/analysis/processing/qgsalgorithmremoveduplicatenodes.cpp
  240. +1 −0 src/analysis/processing/qgsalgorithmremoveduplicatenodes.h
  241. +6 −1 src/analysis/processing/qgsalgorithmremovenullgeometry.cpp
  242. +1 −0 src/analysis/processing/qgsalgorithmremovenullgeometry.h
  243. +5 −0 src/analysis/processing/qgsalgorithmrenamelayer.cpp
  244. +1 −0 src/analysis/processing/qgsalgorithmrenamelayer.h
  245. +5 −0 src/analysis/processing/qgsalgorithmsaveselectedfeatures.cpp
  246. +1 −0 src/analysis/processing/qgsalgorithmsaveselectedfeatures.h
  247. +5 −0 src/analysis/processing/qgsalgorithmsimplify.cpp
  248. +1 −0 src/analysis/processing/qgsalgorithmsimplify.h
  249. +5 −0 src/analysis/processing/qgsalgorithmsmooth.cpp
  250. +1 −0 src/analysis/processing/qgsalgorithmsmooth.h
  251. +5 −0 src/analysis/processing/qgsalgorithmsnaptogrid.cpp
  252. +1 −0 src/analysis/processing/qgsalgorithmsnaptogrid.h
  253. +5 −0 src/analysis/processing/qgsalgorithmsplitwithlines.cpp
  254. +1 −0 src/analysis/processing/qgsalgorithmsplitwithlines.h
  255. +5 −0 src/analysis/processing/qgsalgorithmstringconcatenation.cpp
  256. +1 −0 src/analysis/processing/qgsalgorithmstringconcatenation.h
  257. +5 −0 src/analysis/processing/qgsalgorithmsubdivide.cpp
  258. +1 −0 src/analysis/processing/qgsalgorithmsubdivide.h
  259. +5 −0 src/analysis/processing/qgsalgorithmtransect.cpp
  260. +1 −0 src/analysis/processing/qgsalgorithmtransect.h
  261. +5 −0 src/analysis/processing/qgsalgorithmtransform.cpp
  262. +1 −0 src/analysis/processing/qgsalgorithmtransform.h
  263. +5 −0 src/analysis/processing/qgsalgorithmtranslate.cpp
  264. +1 −0 src/analysis/processing/qgsalgorithmtranslate.h
  265. +7 −1 src/core/processing/models/qgsprocessingmodelalgorithm.cpp
  266. +3 −1 src/core/processing/models/qgsprocessingmodelalgorithm.h
  267. +10 −0 src/core/processing/qgsprocessingalgorithm.h
  268. BIN tests/testdata/polys_overlapping_with_id.dbf
@@ -22,7 +22,7 @@ class QgsProcessingModelAlgorithm : QgsProcessingAlgorithm
%End
public:

QgsProcessingModelAlgorithm( const QString &name = QString(), const QString &group = QString() );
QgsProcessingModelAlgorithm( const QString &name = QString(), const QString &group = QString(), const QString &groupId = QString() );
%Docstring
Constructor for QgsProcessingModelAlgorithm.
%End
@@ -36,6 +36,8 @@ class QgsProcessingModelAlgorithm : QgsProcessingAlgorithm

virtual QString group() const;

virtual QString groupId() const;

virtual QIcon icon() const;

virtual QString svgIconPath() const;
@@ -158,10 +158,20 @@ class QgsProcessingAlgorithm
%Docstring
Returns the name of the group this algorithm belongs to. This string
should be localised.
.. seealso:: :py:func:`groupId()`
.. seealso:: :py:func:`tags()`
:rtype: str
%End

virtual QString groupId() const;
%Docstring
Returns the unique ID of the group this algorithm belongs to. This string
should be fixed for the algorithm, and must not be localised. The group id
should be unique within each provider. Group id should contain lowercase
alphanumeric characters only and no spaces or other formatting characters.
.. seealso:: :py:func:`group()`
:rtype: str
%End
virtual Flags flags() const;
%Docstring
Returns the flags indicating how and when the algorithm operates and should be exposed to users.
@@ -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)

0 comments on commit db07bc6

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