Skip to content

Commit 53bc147

Browse files
committed
[processing] add group id to GDAL algorithms
1 parent 5e157c9 commit 53bc147

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+153
-0
lines changed

python/plugins/processing/algs/gdal/AssignProjection.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ def icon(self):
7070
def group(self):
7171
return self.tr('Raster projections')
7272

73+
def group(self):
74+
return 'rasterprojections'
75+
7376
def getConsoleCommands(self, parameters, context, feedback, executing=True):
7477
inLayer = self.parameterAsRasterLayer(parameters, self.INPUT, context)
7578
fileName = inLayer.source()

python/plugins/processing/algs/gdal/Buffer.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ def displayName(self):
9595
def group(self):
9696
return self.tr('Vector geoprocessing')
9797

98+
def groupId(self):
99+
return 'vectorgeoprocessing'
100+
98101
def commandName(self):
99102
return 'ogr2ogr'
100103

python/plugins/processing/algs/gdal/ClipRasterByExtent.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ def displayName(self):
9999
def group(self):
100100
return self.tr('Raster extraction')
101101

102+
def groupId(self):
103+
return 'rasterextraction'
104+
102105
def icon(self):
103106
return QIcon(os.path.join(pluginPath, 'images', 'gdaltools', 'raster-clip.png'))
104107

python/plugins/processing/algs/gdal/ClipRasterByMask.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ def icon(self):
116116
def group(self):
117117
return self.tr('Raster extraction')
118118

119+
def groupId(self):
120+
return 'rasterextraction'
121+
119122
def getConsoleCommands(self, parameters, context, feedback, executing=True):
120123
inLayer = self.parameterAsRasterLayer(parameters, self.INPUT, context)
121124

python/plugins/processing/algs/gdal/ClipVectorByExtent.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ def displayName(self):
7171
def group(self):
7272
return self.tr('Vector geoprocessing')
7373

74+
def groupId(self):
75+
return 'vectorgeoprocessing'
76+
7477
def commandName(self):
7578
return 'ogr2ogr'
7679

python/plugins/processing/algs/gdal/ClipVectorByMask.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ def displayName(self):
7070
def group(self):
7171
return self.tr('Vector geoprocessing')
7272

73+
def groupId(self):
74+
return 'vectorgeoprocessing'
75+
7376
def commandName(self):
7477
return 'ogr2ogr'
7578

python/plugins/processing/algs/gdal/ColorRelief.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ def displayName(self):
9292
def group(self):
9393
return self.tr('Raster analysis')
9494

95+
def groupId(self):
96+
return 'rasteranalysis'
97+
9598
def getConsoleCommands(self, parameters, context, feedback, executing=True):
9699
arguments = ['color-relief']
97100
inLayer = self.parameterAsRasterLayer(parameters, self.INPUT, context)

python/plugins/processing/algs/gdal/Dissolve.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ def displayName(self):
106106
def group(self):
107107
return self.tr('Vector geoprocessing')
108108

109+
def groupId(self):
110+
return 'vectorgeoprocessing'
111+
109112
def commandName(self):
110113
return 'ogr2ogr'
111114

python/plugins/processing/algs/gdal/ExecuteSql.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ def displayName(self):
8282
def group(self):
8383
return self.tr('Vector miscellaneous')
8484

85+
def groupId(self):
86+
return 'vectormiscellaneous'
87+
8588
def getConsoleCommands(self, parameters, context, feedback, executing=True):
8689
ogrLayer, layerName = self.getOgrCompatibleSource(self.INPUT, parameters, context, feedback, executing)
8790
sql = self.parameterAsString(parameters, self.SQL, context)

python/plugins/processing/algs/gdal/GridAverage.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,9 @@ def displayName(self):
132132
def group(self):
133133
return self.tr('Raster analysis')
134134

135+
def groupId(self):
136+
return 'rasteranalysis'
137+
135138
def icon(self):
136139
return QIcon(os.path.join(pluginPath, 'images', 'gdaltools', 'grid.png'))
137140

python/plugins/processing/algs/gdal/GridDataMetrics.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,9 @@ def icon(self):
149149
def group(self):
150150
return self.tr('Raster analysis')
151151

152+
def groupId(self):
153+
return 'rasteranalysis'
154+
152155
def getConsoleCommands(self, parameters, context, feedback, executing=True):
153156
ogrLayer, layerName = self.getOgrCompatibleSource(self.INPUT, parameters, context, feedback, executing)
154157

python/plugins/processing/algs/gdal/GridInverseDistance.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,9 @@ def displayName(self):
152152
def group(self):
153153
return self.tr('Raster analysis')
154154

155+
def groupId(self):
156+
return 'rasteranalysis'
157+
155158
def icon(self):
156159
return QIcon(os.path.join(pluginPath, 'images', 'gdaltools', 'grid.png'))
157160

python/plugins/processing/algs/gdal/GridInverseDistanceNearestNeighbor.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,9 @@ def displayName(self):
139139
def group(self):
140140
return self.tr('Raster analysis')
141141

142+
def groupId(self):
143+
return 'rasteranalysis'
144+
142145
def icon(self):
143146
return QIcon(os.path.join(pluginPath, 'images', 'gdaltools', 'grid.png'))
144147

python/plugins/processing/algs/gdal/GridLinear.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ def displayName(self):
114114
def group(self):
115115
return self.tr('Raster analysis')
116116

117+
def groupId(self):
118+
return 'rasteranalysis'
119+
117120
def icon(self):
118121
return QIcon(os.path.join(pluginPath, 'images', 'gdaltools', 'grid.png'))
119122

python/plugins/processing/algs/gdal/GridNearestNeighbor.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ def displayName(self):
127127
def group(self):
128128
return self.tr('Raster analysis')
129129

130+
def groupId(self):
131+
return 'rasteranalysis'
132+
130133
def icon(self):
131134
return QIcon(os.path.join(pluginPath, 'images', 'gdaltools', 'grid.png'))
132135

python/plugins/processing/algs/gdal/OffsetCurve.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ def displayName(self):
7878
def group(self):
7979
return self.tr('Vector geoprocessing')
8080

81+
def groupId(self):
82+
return 'vectorgeoprocessing'
83+
8184
def commandName(self):
8285
return 'ogr2ogr'
8386

python/plugins/processing/algs/gdal/OgrToPostGis.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,9 @@ def displayName(self):
162162
def group(self):
163163
return self.tr('Vector miscellaneous')
164164

165+
def groupId(self):
166+
return 'vectormiscellaneous'
167+
165168
def getConnectionString(self, parameters, context):
166169
host = self.parameterAsString(parameters, self.HOST, context)
167170
port = self.parameterAsString(parameters, self.PORT, context)

python/plugins/processing/algs/gdal/OneSideBuffer.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ def displayName(self):
104104
def group(self):
105105
return self.tr('Vector geoprocessing')
106106

107+
def groupId(self):
108+
return 'vectorgeoprocessing'
109+
107110
def commandName(self):
108111
return 'ogr2ogr'
109112

python/plugins/processing/algs/gdal/PointsAlongLines.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ def displayName(self):
8383
def group(self):
8484
return self.tr('Vector geoprocessing')
8585

86+
def groupId(self):
87+
return 'vectorgeoprocessing'
88+
8689
def commandName(self):
8790
return 'ogr2ogr'
8891

python/plugins/processing/algs/gdal/aspect.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ def displayName(self):
9393
def group(self):
9494
return self.tr('Raster analysis')
9595

96+
def groupId(self):
97+
return 'rasteranalysis'
98+
9699
def getConsoleCommands(self, parameters, context, feedback, executing=True):
97100
arguments = ['aspect']
98101
inLayer = self.parameterAsRasterLayer(parameters, self.INPUT, context)

python/plugins/processing/algs/gdal/buildvrt.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ def icon(self):
100100
def group(self):
101101
return self.tr('Raster miscellaneous')
102102

103+
def groupId(self):
104+
return 'rastermiscellaneous'
105+
103106
def getConsoleCommands(self, parameters, context, feedback, executing=True):
104107
arguments = []
105108
arguments.append('-resolution')

python/plugins/processing/algs/gdal/contour.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ def icon(self):
118118
def group(self):
119119
return self.tr('Raster extraction')
120120

121+
def groupId(self):
122+
return 'rasterextraction'
123+
121124
def getConsoleCommands(self, parameters, context, feedback, executing=True):
122125
inLayer = self.parameterAsRasterLayer(parameters, self.INPUT, context)
123126
fieldName = self.parameterAsString(parameters, self.FIELD_NAME, context)

python/plugins/processing/algs/gdal/extractprojection.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ def icon(self):
6363
def group(self):
6464
return self.tr('Raster projections')
6565

66+
def groupId(self):
67+
return 'rasterprojections'
68+
6669
def getConsoleCommands(self, parameters, context, feedback, executing=True):
6770
return ["extractprojection"]
6871

python/plugins/processing/algs/gdal/fillnodata.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ def displayName(self):
8686
def group(self):
8787
return self.tr('Raster analysis')
8888

89+
def groupId(self):
90+
return 'rasteranalysis'
91+
8992
def getConsoleCommands(self, parameters, context, feedback, executing=True):
9093
arguments = []
9194
arguments.append('-md')

python/plugins/processing/algs/gdal/gdal2tiles.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@ def displayName(self):
153153
def group(self):
154154
return self.tr('Raster miscellaneous')
155155

156+
def groupId(self):
157+
return 'rastermiscellaneous'
158+
156159
def getConsoleCommands(self, parameters, context, feedback, executing=True):
157160
arguments = []
158161

python/plugins/processing/algs/gdal/gdal2xyz.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ def displayName(self):
6969
def group(self):
7070
return self.tr('Raster conversion')
7171

72+
def groupId(self):
73+
return 'rasterconversion'
74+
7275
def getConsoleCommands(self, parameters, context, feedback, executing=True):
7376
arguments = []
7477
arguments = []

python/plugins/processing/algs/gdal/gdaladdo.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ def displayName(self):
9999
def group(self):
100100
return self.tr('Raster miscellaneous')
101101

102+
def groupId(self):
103+
return 'rastermiscellaneous'
104+
102105
def icon(self):
103106
return QIcon(os.path.join(pluginPath, 'images', 'gdaltools', 'raster-overview.png'))
104107

python/plugins/processing/algs/gdal/gdalcalc.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ def displayName(self):
102102
def group(self):
103103
return self.tr('Raster miscellaneous')
104104

105+
def groupId(self):
106+
return 'rastermiscellaneous'
107+
105108
def getConsoleCommands(self, parameters, context, feedback, executing=True):
106109
out = self.getOutputValue(self.OUTPUT)
107110
extra = self.getParameterValue(self.EXTRA)

python/plugins/processing/algs/gdal/gdalinfo.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ def displayName(self):
8080
def group(self):
8181
return self.tr('Raster miscellaneous')
8282

83+
def groupId(self):
84+
return 'rastermiscellaneous'
85+
8386
def icon(self):
8487
return QIcon(os.path.join(pluginPath, 'images', 'gdaltools', 'raster-info.png'))
8588

python/plugins/processing/algs/gdal/gdaltindex.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ def displayName(self):
111111
def group(self):
112112
return self.tr('Raster miscellaneous')
113113

114+
def groupId(self):
115+
return 'rastermiscellaneous'
116+
114117
def icon(self):
115118
return QIcon(os.path.join(pluginPath, 'images', 'gdaltools', 'tiles.png'))
116119

python/plugins/processing/algs/gdal/hillshade.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ def displayName(self):
120120
def group(self):
121121
return self.tr('Raster analysis')
122122

123+
def groupId(self):
124+
return 'rasteranalysis'
125+
123126
def getConsoleCommands(self, parameters, context, feedback, executing=True):
124127
arguments = ['hillshade']
125128
inLayer = self.parameterAsRasterLayer(parameters, self.INPUT, context)

python/plugins/processing/algs/gdal/merge.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ def displayName(self):
9898
def group(self):
9999
return self.tr('Raster miscellaneous')
100100

101+
def groupId(self):
102+
return 'rastermiscellaneous'
103+
101104
def icon(self):
102105
return QIcon(os.path.join(pluginPath, 'images', 'gdaltools', 'merge.png'))
103106

python/plugins/processing/algs/gdal/nearblack.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ def displayName(self):
8686
def group(self):
8787
return self.tr('Raster analysis')
8888

89+
def groupId(self):
90+
return 'rasteranalysis'
91+
8992
def icon(self):
9093
return QIcon(os.path.join(pluginPath, 'images', 'gdaltools', 'nearblack.png'))
9194

python/plugins/processing/algs/gdal/ogr2ogr.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ def displayName(self):
6868
def group(self):
6969
return self.tr('Vector conversion')
7070

71+
def groupId(self):
72+
return 'vectorconversion'
73+
7174
def commandName(self):
7275
return 'ogr2ogr'
7376

python/plugins/processing/algs/gdal/ogr2ogrtabletopostgislist.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,9 @@ def displayName(self):
119119
def group(self):
120120
return self.tr('Vector miscellaneous')
121121

122+
def groupId(self):
123+
return 'vectormiscellaneous'
124+
122125
def getConsoleCommands(self, parameters, context, feedback, executing=True):
123126
connection = self.DB_CONNECTIONS[self.getParameterValue(self.DATABASE)]
124127
uri = uri_from_name(connection)

python/plugins/processing/algs/gdal/ogr2ogrtopostgislist.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,9 @@ def displayName(self):
176176
def group(self):
177177
return self.tr('Vector miscellaneous')
178178

179+
def groupId(self):
180+
return 'vectormiscellaneous'
181+
179182
def getConsoleCommands(self, parameters, context, feedback, executing=True):
180183
connection = self.parameterAsString(parameters, self.DATABASE, context)
181184
uri = uri_from_name(connection)

python/plugins/processing/algs/gdal/ogrinfo.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ def displayName(self):
6868
def group(self):
6969
return self.tr('Vector miscellaneous')
7070

71+
def group(self):
72+
return 'vectormiscellaneous'
73+
7174
def getConsoleCommands(self, parameters, context, feedback, executing=True):
7275
arguments = ['ogrinfo']
7376
arguments.append('-al')

python/plugins/processing/algs/gdal/pct2rgb.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ def displayName(self):
7171
def group(self):
7272
return self.tr('Raster conversion')
7373

74+
def groupId(self):
75+
return 'rasterconversion'
76+
7477
def icon(self):
7578
return QIcon(os.path.join(pluginPath, 'images', 'gdaltools', '8-to-24-bits.png'))
7679

python/plugins/processing/algs/gdal/polygonize.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ def displayName(self):
7979
def group(self):
8080
return self.tr('Raster conversion')
8181

82+
def group(self):
83+
return 'rasterconversion'
84+
8285
def icon(self):
8386
return QIcon(os.path.join(pluginPath, 'images', 'gdaltools', 'polygonize.png'))
8487

python/plugins/processing/algs/gdal/proximity.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,9 @@ def displayName(self):
128128
def group(self):
129129
return self.tr('Raster analysis')
130130

131+
def groupId(self):
132+
return 'rasteranalysis'
133+
131134
def getConsoleCommands(self, parameters, context, feedback, executing=True):
132135
inLayer = self.parameterAsRasterLayer(parameters, self.INPUT, context)
133136
distance = self.parameterAsDouble(parameters, self.MAX_DISTANCE, context)

0 commit comments

Comments
 (0)