Skip to content

Commit

Permalink
[processing] add group id to QGIS algorithms
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Dec 14, 2017
1 parent 53bc147 commit dca37ab
Show file tree
Hide file tree
Showing 117 changed files with 352 additions and 2 deletions.
3 changes: 3 additions & 0 deletions python/plugins/processing/algs/qgis/AddTableField.py
Expand Up @@ -46,6 +46,9 @@ class AddTableField(QgisFeatureBasedAlgorithm):
def group(self):
return self.tr('Vector table')

def groupId(self):
return 'vectortable'

def __init__(self):
super().__init__()
self.type_names = [self.tr('Integer'),
Expand Down
3 changes: 3 additions & 0 deletions python/plugins/processing/algs/qgis/Aggregate.py
Expand Up @@ -57,6 +57,9 @@ class Aggregate(QgisAlgorithm):
def group(self):
return self.tr('Vector geometry')

def groupId(self):
return 'vectorgeometry'

def name(self):
return 'aggregate'

Expand Down
3 changes: 3 additions & 0 deletions python/plugins/processing/algs/qgis/Aspect.py
Expand Up @@ -51,6 +51,9 @@ def icon(self):
def group(self):
return self.tr('Raster terrain analysis')

def groupId(self):
return 'rasterterrainanalysis'

def __init__(self):
super().__init__()

Expand Down
3 changes: 3 additions & 0 deletions python/plugins/processing/algs/qgis/BarPlot.py
Expand Up @@ -47,6 +47,9 @@ class BarPlot(QgisAlgorithm):
def group(self):
return self.tr('Graphics')

def groupId(self):
return 'graphics'

def __init__(self):
super().__init__()

Expand Down
3 changes: 3 additions & 0 deletions python/plugins/processing/algs/qgis/BasicStatistics.py
Expand Up @@ -83,6 +83,9 @@ def tags(self):
def group(self):
return self.tr('Vector analysis')

def groupId(self):
return 'vectoranalysis'

def __init__(self):
super().__init__()

Expand Down
3 changes: 3 additions & 0 deletions python/plugins/processing/algs/qgis/BoxPlot.py
Expand Up @@ -49,6 +49,9 @@ class BoxPlot(QgisAlgorithm):
def group(self):
return self.tr('Graphics')

def groupId(self):
return 'graphics'

def __init__(self):
super().__init__()

Expand Down
3 changes: 3 additions & 0 deletions python/plugins/processing/algs/qgis/CheckValidity.py
Expand Up @@ -68,6 +68,9 @@ def icon(self):
def group(self):
return self.tr('Vector geometry')

def groupId(self):
return 'vectorgeometry'

def tags(self):
return self.tr('valid,invalid,detect').split(',')

Expand Down
3 changes: 3 additions & 0 deletions python/plugins/processing/algs/qgis/ConcaveHull.py
Expand Up @@ -51,6 +51,9 @@ class ConcaveHull(QgisAlgorithm):
def group(self):
return self.tr('Vector geometry')

def groupId(self):
return 'vectorgeometry'

def __init__(self):
super().__init__()

Expand Down
3 changes: 3 additions & 0 deletions python/plugins/processing/algs/qgis/CreateAttributeIndex.py
Expand Up @@ -43,6 +43,9 @@ class CreateAttributeIndex(QgisAlgorithm):
def group(self):
return self.tr('Vector general')

def groupId(self):
return 'vectorgeneral'

def __init__(self):
super().__init__()

Expand Down
3 changes: 3 additions & 0 deletions python/plugins/processing/algs/qgis/CreateConstantRaster.py
Expand Up @@ -50,6 +50,9 @@ class CreateConstantRaster(QgisAlgorithm):
def group(self):
return self.tr('Raster tools')

def groupId(self):
return 'rastertools'

def __init__(self):
super().__init__()

Expand Down
3 changes: 3 additions & 0 deletions python/plugins/processing/algs/qgis/Datasources2Vrt.py
Expand Up @@ -49,6 +49,9 @@ class Datasources2Vrt(QgisAlgorithm):
def group(self):
return self.tr('Vector general')

def groupId(self):
return 'vectorgeneral'

def __init__(self):
super().__init__()

Expand Down
3 changes: 3 additions & 0 deletions python/plugins/processing/algs/qgis/DefineProjection.py
Expand Up @@ -46,6 +46,9 @@ class DefineProjection(QgisAlgorithm):
def group(self):
return self.tr('Vector general')

def groupId(self):
return 'vectorgeneral'

def __init__(self):
super().__init__()

Expand Down
3 changes: 3 additions & 0 deletions python/plugins/processing/algs/qgis/Delaunay.py
Expand Up @@ -61,6 +61,9 @@ def icon(self):
def group(self):
return self.tr('Vector geometry')

def groupId(self):
return 'vectorgeometry'

def __init__(self):
super().__init__()

Expand Down
3 changes: 3 additions & 0 deletions python/plugins/processing/algs/qgis/DeleteColumn.py
Expand Up @@ -40,6 +40,9 @@ def tags(self):
def group(self):
return self.tr('Vector table')

def groupId(self):
return 'vectortable'

def __init__(self):
super().__init__()
self.fields_to_delete = []
Expand Down
Expand Up @@ -40,6 +40,9 @@ class DeleteDuplicateGeometries(QgisAlgorithm):
def group(self):
return self.tr('Vector general')

def groupId(self):
return 'vectorgeneral'

def __init__(self):
super().__init__()

Expand Down
3 changes: 3 additions & 0 deletions python/plugins/processing/algs/qgis/DeleteHoles.py
Expand Up @@ -48,6 +48,9 @@ def tags(self):
def group(self):
return self.tr('Vector geometry')

def groupId(self):
return 'vectorgeometry'

def name(self):
return 'deleteholes'

Expand Down
3 changes: 3 additions & 0 deletions python/plugins/processing/algs/qgis/DensifyGeometries.py
Expand Up @@ -43,6 +43,9 @@ def tags(self):
def group(self):
return self.tr('Vector geometry')

def groupId(self):
return 'vectorgeometry'

def __init__(self):
super().__init__()
self.vertices = None
Expand Down
Expand Up @@ -39,6 +39,9 @@ class DensifyGeometriesInterval(QgisFeatureBasedAlgorithm):
def group(self):
return self.tr('Vector geometry')

def groupId(self):
return 'vectorgeometry'

def __init__(self):
super().__init__()
self.interval = None
Expand Down
3 changes: 3 additions & 0 deletions python/plugins/processing/algs/qgis/Difference.py
Expand Up @@ -54,6 +54,9 @@ def icon(self):
def group(self):
return self.tr('Vector overlay')

def groupId(self):
return 'vectoroverlay'

def __init__(self):
super().__init__()

Expand Down
3 changes: 3 additions & 0 deletions python/plugins/processing/algs/qgis/EliminateSelection.py
Expand Up @@ -61,6 +61,9 @@ def icon(self):
def group(self):
return self.tr('Vector geometry')

def groupId(self):
return 'vectorgeometry'

def __init__(self):
super().__init__()

Expand Down
3 changes: 3 additions & 0 deletions python/plugins/processing/algs/qgis/EquivalentNumField.py
Expand Up @@ -43,6 +43,9 @@ class EquivalentNumField(QgisAlgorithm):
def group(self):
return self.tr('Vector table')

def groupId(self):
return 'vectortable'

def __init__(self):
super().__init__()

Expand Down
3 changes: 3 additions & 0 deletions python/plugins/processing/algs/qgis/ExecuteSQL.py
Expand Up @@ -56,6 +56,9 @@ class ExecuteSQL(QgisAlgorithm):
def group(self):
return self.tr('Vector general')

def groupId(self):
return 'vectorgeneral'

def __init__(self):
super().__init__()

Expand Down
3 changes: 3 additions & 0 deletions python/plugins/processing/algs/qgis/Explode.py
Expand Up @@ -44,6 +44,9 @@ class Explode(QgisAlgorithm):
def group(self):
return self.tr('Vector geometry')

def groupId(self):
return 'vectorgeometry'

def __init__(self):
super().__init__()

Expand Down
3 changes: 3 additions & 0 deletions python/plugins/processing/algs/qgis/ExportGeometryInfo.py
Expand Up @@ -62,6 +62,9 @@ def tags(self):
def group(self):
return self.tr('Vector geometry')

def groupId(self):
return 'vectorgeometry'

def __init__(self):
super().__init__()
self.export_z = False
Expand Down
3 changes: 3 additions & 0 deletions python/plugins/processing/algs/qgis/ExtendLines.py
Expand Up @@ -39,6 +39,9 @@ class ExtendLines(QgisFeatureBasedAlgorithm):
def group(self):
return self.tr('Vector geometry')

def groupId(self):
return 'vectorgeometry'

def __init__(self):
super().__init__()
self.start_distance = None
Expand Down
3 changes: 3 additions & 0 deletions python/plugins/processing/algs/qgis/ExtentFromLayer.py
Expand Up @@ -61,6 +61,9 @@ def tags(self):
def group(self):
return self.tr('Layer tools')

def groupId(self):
return 'layertools'

def __init__(self):
super().__init__()

Expand Down
3 changes: 3 additions & 0 deletions python/plugins/processing/algs/qgis/ExtractSpecificNodes.py
Expand Up @@ -50,6 +50,9 @@ class ExtractSpecificNodes(QgisAlgorithm):
def group(self):
return self.tr('Vector geometry')

def groupId(self):
return 'vectorgeometry'

def __init__(self):
super().__init__()

Expand Down
3 changes: 3 additions & 0 deletions python/plugins/processing/algs/qgis/FieldPyculator.py
Expand Up @@ -56,6 +56,9 @@ class FieldsPyculator(QgisAlgorithm):
def group(self):
return self.tr('Vector table')

def groupId(self):
return 'vectortable'

def __init__(self):
super().__init__()

Expand Down
3 changes: 3 additions & 0 deletions python/plugins/processing/algs/qgis/FieldsCalculator.py
Expand Up @@ -60,6 +60,9 @@ class FieldsCalculator(QgisAlgorithm):
def group(self):
return self.tr('Vector table')

def groupId(self):
return 'vectortable'

def __init__(self):
super().__init__()
self.type_names = [self.tr('Float'),
Expand Down
3 changes: 3 additions & 0 deletions python/plugins/processing/algs/qgis/FieldsMapper.py
Expand Up @@ -46,6 +46,9 @@ class FieldsMapper(QgisFeatureBasedAlgorithm):
def group(self):
return self.tr('Vector table')

def groupId(self):
return 'vectortable'

def initParameters(self, config=None):

class ParameterFieldsMapping(QgsProcessingParameterDefinition):
Expand Down
3 changes: 3 additions & 0 deletions python/plugins/processing/algs/qgis/FindProjection.py
Expand Up @@ -59,6 +59,9 @@ def tags(self):
def group(self):
return self.tr('Vector general')

def groupId(self):
return 'vectorgeneral'

def __init__(self):
super().__init__()

Expand Down
3 changes: 3 additions & 0 deletions python/plugins/processing/algs/qgis/FixedDistanceBuffer.py
Expand Up @@ -62,6 +62,9 @@ def icon(self):
def group(self):
return self.tr('Vector geometry')

def groupId(self):
return 'vectorgeometry'

def __init__(self):
super().__init__()

Expand Down
3 changes: 3 additions & 0 deletions python/plugins/processing/algs/qgis/GeometryByExpression.py
Expand Up @@ -46,6 +46,9 @@ class GeometryByExpression(QgisFeatureBasedAlgorithm):
def group(self):
return self.tr('Vector geometry')

def groupId(self):
return 'vectorgeometry'

def __init__(self):
super().__init__()
self.geometry_types = [self.tr('Polygon'),
Expand Down
3 changes: 3 additions & 0 deletions python/plugins/processing/algs/qgis/GeometryConvert.py
Expand Up @@ -48,6 +48,9 @@ class GeometryConvert(QgisAlgorithm):
def group(self):
return self.tr('Vector geometry')

def groupId(self):
return 'vectorgeometry'

def __init__(self):
super().__init__()

Expand Down
3 changes: 3 additions & 0 deletions python/plugins/processing/algs/qgis/GridLine.py
Expand Up @@ -70,6 +70,9 @@ def tags(self):
def group(self):
return self.tr('Vector creation')

def groupId(self):
return 'vectorcreation'

def __init__(self):
super().__init__()

Expand Down
3 changes: 3 additions & 0 deletions python/plugins/processing/algs/qgis/GridPolygon.py
Expand Up @@ -69,6 +69,9 @@ def tags(self):
def group(self):
return self.tr('Vector creation')

def groupId(self):
return 'vectorcreation'

def __init__(self):
super().__init__()

Expand Down
3 changes: 3 additions & 0 deletions python/plugins/processing/algs/qgis/Heatmap.py
Expand Up @@ -69,6 +69,9 @@ def tags(self):
def group(self):
return self.tr('Interpolation')

def groupId(self):
return 'interpolation'

def name(self):
return 'heatmapkerneldensityestimation'

Expand Down
3 changes: 3 additions & 0 deletions python/plugins/processing/algs/qgis/Hillshade.py
Expand Up @@ -53,6 +53,9 @@ def icon(self):
def group(self):
return self.tr('Raster terrain analysis')

def groupId(self):
return 'rasterterrainanalysis'

def __init__(self):
super().__init__()

Expand Down
3 changes: 3 additions & 0 deletions python/plugins/processing/algs/qgis/HubDistanceLines.py
Expand Up @@ -66,6 +66,9 @@ class HubDistanceLines(QgisAlgorithm):
def group(self):
return self.tr('Vector analysis')

def groupId(self):
return 'vectoranalysis'

def __init__(self):
super().__init__()

Expand Down
3 changes: 3 additions & 0 deletions python/plugins/processing/algs/qgis/HubDistancePoints.py
Expand Up @@ -62,6 +62,9 @@ class HubDistancePoints(QgisAlgorithm):
def group(self):
return self.tr('Vector analysis')

def groupId(self):
return 'vectoranalysis'

def __init__(self):
super().__init__()

Expand Down

0 comments on commit dca37ab

Please sign in to comment.