Skip to content

Commit 858cd26

Browse files
committedSep 14, 2018
Use US spelling for neighbor
1 parent f4cab17 commit 858cd26

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed
 

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ def name(self):
6363
return 'knearestconcavehull'
6464

6565
def displayName(self):
66-
return self.tr('Concave hull (k-nearest neighbour)')
66+
return self.tr('Concave hull (k-nearest neighbor)')
6767

6868
def shortDescription(self):
69-
return self.tr('Creates a concave hull using the k-nearest neighbour algorithm.')
69+
return self.tr('Creates a concave hull using the k-nearest neighbor algorithm.')
7070

7171
def icon(self):
7272
return QgsApplication.getThemeIcon("/algorithms/mAlgorithmConcaveHull.svg")
@@ -168,7 +168,6 @@ def processAlgorithm(self, parameters, context, feedback):
168168

169169
else:
170170
# Not grouped by field
171-
172171
# Initialize writer
173172
(sink, dest_id) = self.parameterAsSink(parameters, self.OUTPUT, context,
174173
fields, QgsWkbTypes.Polygon, source.sourceCrs())
@@ -440,7 +439,7 @@ def concave_hull(points_list, k):
440439
without intersecting any previous line segments.
441440
442441
This is an implementation of the algorithm described by Adriano Moreira and Maribel Yasmina Santos:
443-
CONCAVE HULL: A neighborhood_k-NEAREST NEIGHBOURS APPROACH FOR THE COMPUTATION OF THE REGION OCCUPIED BY A SET OF POINTS.
442+
CONCAVE HULL: A neighborhood_k-NEAREST NEIGHBORS APPROACH FOR THE COMPUTATION OF THE REGION OCCUPIED BY A SET OF POINTS.
444443
GRAPP 2007 - International Conference on Computer Graphics Theory and Applications; pp 61-68.
445444
446445
:param points_list: list of tuples (x, y)
@@ -466,7 +465,7 @@ def concave_hull(points_list, k):
466465
if len(point_set) == 3:
467466
return add_point(point_set, point_set[0])
468467

469-
# make sure that k neighbours can be found
468+
# make sure that k neighbors can be found
470469
kk = min(kk, len(point_set))
471470

472471
# start with the point having the smallest y-coordinate (most southern point)

0 commit comments

Comments
 (0)
Please sign in to comment.