Add missing case for accumulating the mean of attributes that are inconsistently present (#329)

* Add missing case for accumulating the mean of attributes that are inconsistently present

* Add more specific test
This commit is contained in:
Erica Fischer
2025-03-20 14:53:04 -07:00
committed by GitHub
parent a0532e73ac
commit bfb62ee2db
7 changed files with 828 additions and 4 deletions
+1 -1
View File
@@ -1949,7 +1949,7 @@ long long write_tile(decompressor *geoms, std::atomic<long long> *geompos_in, ch
features[which_serial_feature]->clustered++;
if (!additional[A_KEEP_POINT_CLUSTER_POSITION] &&
features[which_serial_feature]->t == VT_POINT &&
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;