Skip to content

Commit 1223a1c

Browse files
committed
Address review comments
1 parent c20717a commit 1223a1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/analysis/processing/qgsalgorithmkmeansclustering.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ void QgsKMeansClusteringAlgorithm::initAlgorithm( const QVariantMap & )
6060
QString QgsKMeansClusteringAlgorithm::shortHelpString() const
6161
{
6262
return QObject::tr( "Calculates the 2D distance based k-means cluster number for each input feature.\n\n"
63-
"If input geometries are line or polygons, the clustering is based on the centroid of the feature." );
63+
"If input geometries are lines or polygons, the clustering is based on the centroid of the feature." );
6464
}
6565

6666
QgsKMeansClusteringAlgorithm *QgsKMeansClusteringAlgorithm::createInstance() const
@@ -229,7 +229,7 @@ void QgsKMeansClusteringAlgorithm::initClusters( std::vector<Feature> &points, s
229229
}
230230

231231
// By now two points should be found and be not the same
232-
Q_ASSERT( p1 != p2 && maxDistance >= 0 );
232+
// Q_ASSERT( p1 != p2 && maxDistance >= 0 );
233233

234234
// Accept these two points as our initial centers
235235
centers[0] = points[p1].point;

0 commit comments

Comments
 (0)