Skip to content
Permalink
Browse files

Merge pull request #36372 from alexbruy/processing-cpp

port more Processing algorithms to C++
  • Loading branch information
m-kuhn committed May 15, 2020
2 parents 8866021 + 319d34c commit 0df50ca979da86f5b8b8ec0eea2f8b67b8e8e63a
Showing with 1,144 additions and 614 deletions.
  1. +0 −23 python/plugins/processing/algs/help/qgis.yaml
  2. +0 −123 python/plugins/processing/algs/qgis/Polygonize.py
  3. +0 −82 python/plugins/processing/algs/qgis/PostGISExecuteSQL.py
  4. +0 −10 python/plugins/processing/algs/qgis/QgisAlgorithmProvider.py
  5. +0 −148 python/plugins/processing/algs/qgis/SnapGeometries.py
  6. +0 −88 python/plugins/processing/algs/qgis/SpatialiteExecuteSQL.py
  7. +0 −131 python/plugins/processing/algs/qgis/VectorSplit.py
  8. +10 −7 python/plugins/processing/tests/testdata/qgis_algorithm_tests2.yaml
  9. +1 −1 python/plugins/processing/tests/testdata/qgis_algorithm_tests3.yaml
  10. +6 −0 src/analysis/CMakeLists.txt
  11. +96 −0 src/analysis/processing/qgsalgorithmexecutepostgisquery.cpp
  12. +54 −0 src/analysis/processing/qgsalgorithmexecutepostgisquery.h
  13. +107 −0 src/analysis/processing/qgsalgorithmexecutespatialitequery.cpp
  14. +54 −0 src/analysis/processing/qgsalgorithmexecutespatialitequery.h
  15. +96 −0 src/analysis/processing/qgsalgorithmexecutespatialitequeryregistered.cpp
  16. +54 −0 src/analysis/processing/qgsalgorithmexecutespatialitequeryregistered.h
  17. +141 −0 src/analysis/processing/qgsalgorithmpolygonize.cpp
  18. +54 −0 src/analysis/processing/qgsalgorithmpolygonize.h
  19. +195 −0 src/analysis/processing/qgsalgorithmsnapgeometries.cpp
  20. +56 −0 src/analysis/processing/qgsalgorithmsnapgeometries.h
  21. +150 −0 src/analysis/processing/qgsalgorithmsplitvectorlayer.cpp
  22. +57 −0 src/analysis/processing/qgsalgorithmsplitvectorlayer.h
  23. +13 −1 src/analysis/processing/qgsnativealgorithms.cpp
@@ -252,18 +252,9 @@ qgis:polygoncentroids: >

NOTE: This algorithm is deprecated and the generic "centroids" algorithm (which works for line and multi geometry layers) should be used instead.

qgis:polygonize: >
This algorithm takes a lines layer and creates a polygon layer, with polygons generated from the lines in the input layer.

qgis:polygonstolines: >
This algorithm takes a polygon layer and creates a line layer, with lines representing the rings of the polygons in the input layer.

qgis:spatialiteexecutesql: >
This algorithm performs a SQL database query on a SpatiaLite database.

qgis:postgisexecutesql: >
This algorithm performs a SQL database query on a PostgreSQL database connected to QGIS.

qgis:postgisexecuteandloadsql: >
This algorithm performs a SQL database query on a PostGIS database connected to QGIS and loads the query results as a new layer.

@@ -360,25 +351,11 @@ qgis:setstyleforrasterlayer: >
qgis:setstyleforvectorlayer: >
This algorithm sets the style of a vector layer. The style must be defined in a QML file.

qgis:snapgeometries: >
This algorithm snaps the geometries in a layer. Snapping can be done either to the geometries from another layer, or to geometries within the same layer.

A tolerance is specified in layer units to control how close vertices need to be to the reference layer geometries before they are snapped.

Snapping occurs to both nodes and edges. Depending on the snapping behavior, either nodes or edges will be preferred.

Vertices will be inserted or removed as required to make the geometries match the reference geometries.

qgis:splitwithlines: >
This algorithm splits the lines or polygons in one layer using the lines in another layer to define the breaking points. Intersection between geometries in both layers are considered as split points.

Output will contain multi geometries for split features.

qgis:splitvectorlayer: >
This algorithm takes a vector layer and an attribute and generates a set of vector layers in an output folder. Each of the layers created in that folder contains all features from the input layer with the same value for the specified attribute.

The number of files generated is equal to the number of different values found for the specified attribute.

qgis:statisticsbycategories: >
This algorithm calculates statistics of fields depending on a parent class.

This file was deleted.

This file was deleted.

@@ -63,8 +63,6 @@
from .PointsFromLines import PointsFromLines
from .PointsToPaths import PointsToPaths
from .PolarPlot import PolarPlot
from .Polygonize import Polygonize
from .PostGISExecuteSQL import PostGISExecuteSQL
from .PostGISExecuteAndLoadSQL import PostGISExecuteAndLoadSQL
from .RandomExtractWithinSubsets import RandomExtractWithinSubsets
from .RandomPointsAlongLines import RandomPointsAlongLines
@@ -82,8 +80,6 @@
from .SelectByExpression import SelectByExpression
from .SetRasterStyle import SetRasterStyle
from .SetVectorStyle import SetVectorStyle
from .SnapGeometries import SnapGeometriesToLayer
from .SpatialiteExecuteSQL import SpatialiteExecuteSQL
from .SpatialJoinSummary import SpatialJoinSummary
from .StatisticsByCategories import StatisticsByCategories
from .TextToFloat import TextToFloat
@@ -95,7 +91,6 @@
from .VectorLayerHistogram import VectorLayerHistogram
from .VectorLayerScatterplot import VectorLayerScatterplot
from .VectorLayerScatterplot3D import VectorLayerScatterplot3D
from .VectorSplit import VectorSplit
from .VoronoiPolygons import VoronoiPolygons


@@ -144,8 +139,6 @@ def getAlgs(self):
PointsFromLines(),
PointsToPaths(),
PolarPlot(),
Polygonize(),
PostGISExecuteSQL(),
PostGISExecuteAndLoadSQL(),
RandomExtractWithinSubsets(),
RandomPointsAlongLines(),
@@ -163,8 +156,6 @@ def getAlgs(self):
SelectByExpression(),
SetRasterStyle(),
SetVectorStyle(),
SnapGeometriesToLayer(),
SpatialiteExecuteSQL(),
SpatialJoinSummary(),
StatisticsByCategories(),
TextToFloat(),
@@ -177,7 +168,6 @@ def getAlgs(self):
VectorLayerHistogram(),
VectorLayerScatterplot(),
VectorLayerScatterplot3D(),
VectorSplit(),
VoronoiPolygons(),
]

0 comments on commit 0df50ca

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