Skip to content

Commit

Permalink
Merge branch 'vegetation-seedpoint-fix' into 'master'
Browse files Browse the repository at this point in the history
Do not remove seedpoint when erasing point from cluster

Closes #5

See merge request gislab/cloudtools!13
  • Loading branch information
mcserep committed Apr 8, 2024
2 parents 5972793 + 721ca24 commit 45b99dd
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions CloudTools.DEM/ClusterMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,6 @@ void ClusterMap::removePoint(GUInt32 clusterIndex, int x, int y)

if (_clusterIndexes[clusterIndex].empty())
removeCluster(clusterIndex);
else if (_seedPoints[clusterIndex].getX() == point.getX() &&
_seedPoints[clusterIndex].getY() == point.getY())
_seedPoints.erase(clusterIndex);
}

std::vector<OGRPoint> ClusterMap::neighbors(GUInt32 clusterIndex) const
Expand Down

0 comments on commit 45b99dd

Please sign in to comment.