Add maximum pseudocluster size option for low-zoom points (#119)

* Trying to improve cluster positions

* Fix centroid calculation

* Just move points to cluster centroids; add point gap threshold

* Add maximum-point-gap option

* Fix formatting

* Rename options for clarity; add tests; update changelog

* Add missing break to switch

* Revert unneeded constructor cleanup that broke a test somehow

* Clean up comments

* Remove unused --move-points-to-cluster-centroids

* Mention tile-join change in changelog
This commit is contained in:
Erica Fischer
2023-07-17 15:33:07 -07:00
committed by GitHub
parent 1c3bd5352c
commit 4318e964e3
8 changed files with 2640 additions and 9 deletions
-2
View File
@@ -1013,7 +1013,6 @@ bool find_common_edges(std::vector<partial> &partials, int z, int line_detail, d
std::vector<drawvec> simplified_arcs;
size_t count = 0;
for (auto ai = arcs.begin(); ai != arcs.end(); ++ai) {
if (simplified_arcs.size() < ai->second + 1) {
simplified_arcs.resize(ai->second + 1);
@@ -1032,7 +1031,6 @@ bool find_common_edges(std::vector<partial> &partials, int z, int line_detail, d
} else {
simplified_arcs[ai->second] = dv;
}
count++;
}
// If necessary, merge some adjacent polygons into some other polygons