Skip to content

Commit 23ee945

Browse files
committedMay 12, 2020
update tests and cleanup help file
1 parent 8591950 commit 23ee945

File tree

4 files changed

+13
-32
lines changed

4 files changed

+13
-32
lines changed
 

‎python/plugins/processing/algs/help/qgis.yaml

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -252,18 +252,9 @@ qgis:polygoncentroids: >
252252

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

255-
qgis:polygonize: >
256-
This algorithm takes a lines layer and creates a polygon layer, with polygons generated from the lines in the input layer.
257-
258255
qgis:polygonstolines: >
259256
This algorithm takes a polygon layer and creates a line layer, with lines representing the rings of the polygons in the input layer.
260257

261-
qgis:spatialiteexecutesql: >
262-
This algorithm performs a SQL database query on a SpatiaLite database.
263-
264-
qgis:postgisexecutesql: >
265-
This algorithm performs a SQL database query on a PostgreSQL database connected to QGIS.
266-
267258
qgis:postgisexecuteandloadsql: >
268259
This algorithm performs a SQL database query on a PostGIS database connected to QGIS and loads the query results as a new layer.
269260

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

363-
qgis:snapgeometries: >
364-
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.
365-
366-
A tolerance is specified in layer units to control how close vertices need to be to the reference layer geometries before they are snapped.
367-
368-
Snapping occurs to both nodes and edges. Depending on the snapping behavior, either nodes or edges will be preferred.
369-
370-
Vertices will be inserted or removed as required to make the geometries match the reference geometries.
371-
372354
qgis:splitwithlines: >
373355
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.
374356

375357
Output will contain multi geometries for split features.
376358

377-
qgis:splitvectorlayer: >
378-
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.
379-
380-
The number of files generated is equal to the number of different values found for the specified attribute.
381-
382359
qgis:statisticsbycategories: >
383360
This algorithm calculates statistics of fields depending on a parent class.
384361

‎python/plugins/processing/tests/testdata/qgis_algorithm_tests2.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ tests:
495495
name: expected/geometry_by_expression_line.gml
496496
type: vector
497497

498-
- algorithm: qgis:snapgeometries
498+
- algorithm: native:snapgeometries
499499
name: Snap lines to lines
500500
params:
501501
INPUT:
@@ -510,7 +510,7 @@ tests:
510510
name: expected/snap_lines_to_lines.gml
511511
type: vector
512512

513-
- algorithm: qgis:snapgeometries
513+
- algorithm: native:snapgeometries
514514
name: Snap polygons to polygons
515515
params:
516516
INPUT:
@@ -525,7 +525,7 @@ tests:
525525
name: expected/snap_polys_to_polys.gml
526526
type: vector
527527

528-
- algorithm: qgis:snapgeometries
528+
- algorithm: native:snapgeometries
529529
name: Snap points to points
530530
params:
531531
INPUT:
@@ -540,7 +540,7 @@ tests:
540540
name: expected/snap_points_to_points.gml
541541
type: vector
542542

543-
- algorithm: qgis:snapgeometries
543+
- algorithm: native:snapgeometries
544544
name: Snap points to lines (prefer nodes)
545545
params:
546546
BEHAVIOR: '0'
@@ -556,7 +556,7 @@ tests:
556556
name: expected/snap_point_to_lines_prefer_nodes.gml
557557
type: vector
558558

559-
- algorithm: qgis:snapgeometries
559+
- algorithm: native:snapgeometries
560560
name: Snap points to lines (prefer closest)
561561
params:
562562
BEHAVIOR: '1'
@@ -572,7 +572,7 @@ tests:
572572
name: expected/snap_point_to_lines_prefer_closest.gml
573573
type: vector
574574

575-
- algorithm: qgis:snapgeometries
575+
- algorithm: native:snapgeometries
576576
name: Snap internal
577577
params:
578578
BEHAVIOR: '0'
@@ -588,7 +588,7 @@ tests:
588588
name: expected/snap_internal.gml
589589
type: vector
590590

591-
- algorithm: qgis:snapgeometries
591+
- algorithm: native:snapgeometries
592592
name: Test Snap Geometries (to each other)
593593
params:
594594
BEHAVIOR: '7'

‎python/plugins/processing/tests/testdata/qgis_algorithm_tests3.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ tests:
178178
name: expected/poly_ring_self_intersection_valid_ignore_self.gml
179179
type: vector
180180

181-
- algorithm: qgis:polygonize
181+
- algorithm: native:polygonize
182182
name: Polygonize
183183
params:
184184
KEEP_FIELDS: false

‎src/analysis/processing/qgsalgorithmsplitvectorlayer.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,11 @@ QString QgsSplitVectorLayerAlgorithm::groupId() const
4747

4848
QString QgsSplitVectorLayerAlgorithm::shortHelpString() const
4949
{
50-
return QObject::tr( "Splits input vector layer into multiple layers by specified unique ID field." );
50+
return QObject::tr( "Splits input vector layer into multiple layers by specified unique ID field."
51+
"Each of the layers created in the output folder contains all features from "
52+
"the input layer with the same value for the specified attribute. The number "
53+
":of files generated is equal to the number of different values found for the "
54+
"specified attribute." );
5155
}
5256

5357
QgsSplitVectorLayerAlgorithm *QgsSplitVectorLayerAlgorithm::createInstance() const

0 commit comments

Comments
 (0)
Please sign in to comment.