Skip to content

Commit bbfd699

Browse files
committedAug 17, 2018
Add documentation and improve input parameter descriptions
1 parent 7da8d72 commit bbfd699

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed
 

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,13 @@ qgis:joinbylocationsummary: >
233233
qgis:keepnbiggestparts: >
234234
This algorithm takes a polygon layer and creates a new polygon layer in which multipart geometries have been removed, leaving only the n largest (in terms of area) parts.
235235

236+
qgis:knearestconcavehull: >
237+
This algorithm generates a concave hull polygon from a set of points. If the input layer is a line or polygon layer, it will use the nodes.
238+
239+
The number of neighbours to consider determines the concaveness of the output polygon. A lower number will result in a concave hull that follows the points very closely, while a higher number will have a smoother shape. The minimum number of neighbour points to consider is 3. A value equal to or greater than the number of points will result in a convex hull.
240+
241+
If a field is selected, the algorithm will group the features in the input layer using unique values in that field and generate individual polygons in the output layer for each group.
242+
236243
qgis:lineintersections: >
237244
This algorithm creates point features where the lines in the Intersect layer intersect the lines in the Input layer.
238245

‎python/plugins/processing/algs/qgis/ConcaveHull.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def initAlgorithm(self, config=None):
6969
self.addParameter(QgsProcessingParameterBoolean(self.NO_MULTIGEOMETRY,
7070
self.tr('Split multipart geometry into singleparts geometries'), defaultValue=False))
7171

72-
self.addParameter(QgsProcessingParameterFeatureSink(self.OUTPUT, self.tr('Output layer'), type=QgsProcessing.TypeVectorPolygon))
72+
self.addParameter(QgsProcessingParameterFeatureSink(self.OUTPUT, self.tr('Concave hull'), type=QgsProcessing.TypeVectorPolygon))
7373

7474
def name(self):
7575
return 'concavehull'

‎python/plugins/processing/algs/qgis/KNearestConcaveHull.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def initAlgorithm(self, config=None):
8484
self.addParameter(QgsProcessingParameterFeatureSource(self.INPUT,
8585
self.tr('Input layer')))
8686
self.addParameter(QgsProcessingParameterNumber(self.KNEIGHBORS,
87-
self.tr('Number of neighbors'),
87+
self.tr('Number of neighboring points to consider (a lower number is more concave, a higher number is smoother)'),
8888
QgsProcessingParameterNumber.Integer,
8989
defaultValue=3, minValue=3))
9090
self.addParameter(QgsProcessingParameterField(self.FIELD,

0 commit comments

Comments
 (0)
Please sign in to comment.