Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
update tests and cleanup help file
  • Loading branch information
alexbruy committed May 12, 2020
1 parent 8591950 commit 23ee945
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 32 deletions.
23 changes: 0 additions & 23 deletions python/plugins/processing/algs/help/qgis.yaml
Expand Up @@ -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.

Expand Down Expand Up @@ -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.

Expand Down
Expand Up @@ -495,7 +495,7 @@ tests:
name: expected/geometry_by_expression_line.gml
type: vector

- algorithm: qgis:snapgeometries
- algorithm: native:snapgeometries
name: Snap lines to lines
params:
INPUT:
Expand All @@ -510,7 +510,7 @@ tests:
name: expected/snap_lines_to_lines.gml
type: vector

- algorithm: qgis:snapgeometries
- algorithm: native:snapgeometries
name: Snap polygons to polygons
params:
INPUT:
Expand All @@ -525,7 +525,7 @@ tests:
name: expected/snap_polys_to_polys.gml
type: vector

- algorithm: qgis:snapgeometries
- algorithm: native:snapgeometries
name: Snap points to points
params:
INPUT:
Expand All @@ -540,7 +540,7 @@ tests:
name: expected/snap_points_to_points.gml
type: vector

- algorithm: qgis:snapgeometries
- algorithm: native:snapgeometries
name: Snap points to lines (prefer nodes)
params:
BEHAVIOR: '0'
Expand All @@ -556,7 +556,7 @@ tests:
name: expected/snap_point_to_lines_prefer_nodes.gml
type: vector

- algorithm: qgis:snapgeometries
- algorithm: native:snapgeometries
name: Snap points to lines (prefer closest)
params:
BEHAVIOR: '1'
Expand All @@ -572,7 +572,7 @@ tests:
name: expected/snap_point_to_lines_prefer_closest.gml
type: vector

- algorithm: qgis:snapgeometries
- algorithm: native:snapgeometries
name: Snap internal
params:
BEHAVIOR: '0'
Expand All @@ -588,7 +588,7 @@ tests:
name: expected/snap_internal.gml
type: vector

- algorithm: qgis:snapgeometries
- algorithm: native:snapgeometries
name: Test Snap Geometries (to each other)
params:
BEHAVIOR: '7'
Expand Down
Expand Up @@ -178,7 +178,7 @@ tests:
name: expected/poly_ring_self_intersection_valid_ignore_self.gml
type: vector

- algorithm: qgis:polygonize
- algorithm: native:polygonize
name: Polygonize
params:
KEEP_FIELDS: false
Expand Down
6 changes: 5 additions & 1 deletion src/analysis/processing/qgsalgorithmsplitvectorlayer.cpp
Expand Up @@ -47,7 +47,11 @@ QString QgsSplitVectorLayerAlgorithm::groupId() const

QString QgsSplitVectorLayerAlgorithm::shortHelpString() const
{
return QObject::tr( "Splits input vector layer into multiple layers by specified unique ID field." );
return QObject::tr( "Splits input vector layer into multiple layers by specified unique ID field."
"Each of the layers created in the output 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." );
}

QgsSplitVectorLayerAlgorithm *QgsSplitVectorLayerAlgorithm::createInstance() const
Expand Down

0 comments on commit 23ee945

Please sign in to comment.