Skip to content
Permalink
Browse files

[processing] Port "Aggregate" algorithm to c++

No more silly breakages!

Refs #36843
  • Loading branch information
nyalldawson committed Jun 3, 2020
1 parent d5a340f commit 48c465e9b591e3e2e00d1fd3ff71553fd8b7f696
@@ -1,17 +1,6 @@
qgis:advancedpythonfieldcalculator: >
This algorithm adds a new attribute to a vector layer, with values resulting from applying an expression to each feature. The expression is defined as a Python function.

qgis:aggregate: >
This algorithm take a vector or table layer and aggregate features based on a group by expression. Features for which group by expression return the same value are grouped together.

It is possible to group all source features together using constant value in group by parameter, example: NULL.

It is also possible to group features using multiple fields using Array function, example: Array("Field1", "Field2").

Geometries (if present) are combined into one multipart geometry for each group.

Output attributes are computed depending on each given aggregate definition.

qgis:barplot: >
This algorithm creates a bar plot from a category and a layer field.

This file was deleted.

@@ -29,7 +29,6 @@

from PyQt5.QtCore import QCoreApplication

from .Aggregate import Aggregate
from .BarPlot import BarPlot
from .BasicStatistics import BasicStatisticsForField
from .BoxPlot import BoxPlot
@@ -102,8 +101,7 @@ def __init__(self):
QgsApplication.processingRegistry().addAlgorithmAlias('qgis:rectanglesovalsdiamondsfixed', 'native:rectanglesovalsdiamonds')

def getAlgs(self):
algs = [Aggregate(),
BarPlot(),
algs = [BarPlot(),
BasicStatisticsForField(),
BoxPlot(),
CheckValidity(),
@@ -25,6 +25,7 @@ SET(QGIS_ANALYSIS_SRCS
processing/qgsalgorithmaddtablefield.cpp
processing/qgsalgorithmaddxyfields.cpp
processing/qgsalgorithmaffinetransform.cpp
processing/qgsalgorithmaggregate.cpp
processing/qgsalgorithmapplylayerstyle.cpp
processing/qgsalgorithmarraytranslatedfeatures.cpp
processing/qgsalgorithmaspect.cpp

0 comments on commit 48c465e

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