Skip to content

Commit

Permalink
Use US spelling for neighbor
Browse files Browse the repository at this point in the history
  • Loading branch information
rudivs committed Sep 14, 2018
1 parent f4cab17 commit 858cd26
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions python/plugins/processing/algs/qgis/KNearestConcaveHull.py
Expand Up @@ -63,10 +63,10 @@ def name(self):
return 'knearestconcavehull'

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

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

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

else:
# Not grouped by field

# Initialize writer
(sink, dest_id) = self.parameterAsSink(parameters, self.OUTPUT, context,
fields, QgsWkbTypes.Polygon, source.sourceCrs())
Expand Down Expand Up @@ -440,7 +439,7 @@ def concave_hull(points_list, k):
without intersecting any previous line segments.
This is an implementation of the algorithm described by Adriano Moreira and Maribel Yasmina Santos:
CONCAVE HULL: A neighborhood_k-NEAREST NEIGHBOURS APPROACH FOR THE COMPUTATION OF THE REGION OCCUPIED BY A SET OF POINTS.
CONCAVE HULL: A neighborhood_k-NEAREST NEIGHBORS APPROACH FOR THE COMPUTATION OF THE REGION OCCUPIED BY A SET OF POINTS.
GRAPP 2007 - International Conference on Computer Graphics Theory and Applications; pp 61-68.
:param points_list: list of tuples (x, y)
Expand All @@ -466,7 +465,7 @@ def concave_hull(points_list, k):
if len(point_set) == 3:
return add_point(point_set, point_set[0])

# make sure that k neighbours can be found
# make sure that k neighbors can be found
kk = min(kk, len(point_set))

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

0 comments on commit 858cd26

Please sign in to comment.