Skip to content
Permalink
Browse files

Address review comments

  • Loading branch information
nyalldawson committed Jun 26, 2018
1 parent c20717a commit 1223a1cd35421534797058017b208c02d78cde22
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/analysis/processing/qgsalgorithmkmeansclustering.cpp
@@ -60,7 +60,7 @@ void QgsKMeansClusteringAlgorithm::initAlgorithm( const QVariantMap & )
QString QgsKMeansClusteringAlgorithm::shortHelpString() const
{
return QObject::tr( "Calculates the 2D distance based k-means cluster number for each input feature.\n\n"
"If input geometries are line or polygons, the clustering is based on the centroid of the feature." );
"If input geometries are lines or polygons, the clustering is based on the centroid of the feature." );
}

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

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

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

0 comments on commit 1223a1c

Please sign in to comment.
You can’t perform that action at this time.