Option to not averaging clusters of points (#326)

This commit is contained in:
Denis Govorkov
2025-03-19 13:56:36 -07:00
committed by GitHub
parent de4e1e478f
commit 9d1637f7c1
3 changed files with 4 additions and 1 deletions
+2 -1
View File
@@ -1948,7 +1948,8 @@ long long write_tile(decompressor *geoms, std::atomic<long long> *geompos_in, ch
if ((sf.index < merge_previndex || sf.index - merge_previndex < cluster_mingap) && find_feature_to_accumulate_onto(features, sf, which_serial_feature, layer_unmaps, LLONG_MAX)) {
features[which_serial_feature]->clustered++;
if (features[which_serial_feature]->t == VT_POINT &&
if (!additional[A_KEEP_POINT_CLUSTER_POSITION] &&
features[which_serial_feature]->t == VT_POINT &&
features[which_serial_feature]->geometry.size() == 1 &&
sf.geometry.size() == 1) {
double x = (double) features[which_serial_feature]->geometry[0].x * features[which_serial_feature]->clustered;