Point features may now be coalesced into MultiPoint features with --coalesce

This commit is contained in:
Eric Fischer
2018-12-11 17:09:13 -08:00
parent 4b20948369
commit ca4aad0c64
6 changed files with 6126 additions and 6 deletions
+1 -1
View File
@@ -2163,7 +2163,7 @@ long long write_tile(FILE *geoms, std::atomic<long long> *geompos_in, char *meta
}
#endif
if (additional[A_COALESCE] && out.size() > 0 && coalcmp(&layer_features[x], &out[y]) == 0 && layer_features[x].type != VT_POINT) {
if (additional[A_COALESCE] && out.size() > 0 && coalcmp(&layer_features[x], &out[y]) == 0) {
for (size_t g = 0; g < layer_features[x].geom.size(); g++) {
out[y].geom.push_back(layer_features[x].geom[g]);
}