From e09bec08244eeee58fdc8ed4be91776bc2963718 Mon Sep 17 00:00:00 2001 From: Eric Fischer Date: Mon, 29 Sep 2014 16:18:20 -0700 Subject: [PATCH] Don't coalesce point features, because multipoints don't seem to draw right. --- tile.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tile.cc b/tile.cc index ce09b876..7cf2510a 100644 --- a/tile.cc +++ b/tile.cc @@ -600,7 +600,7 @@ long long write_tile(struct index *start, struct index *end, char *metabase, uns int out = 0; for (x = 0; x < nfeatures; x++) { - if (out > 0 && features[out - 1].ngeom + features[x].ngeom < 20000 && coalcmp(&features[x], &features[out - 1]) == 0) { + if (out > 0 && features[out - 1].ngeom + features[x].ngeom < 20000 && coalcmp(&features[x], &features[out - 1]) == 0 && features[x].type != VT_POINT) { struct draw *tmp = (struct draw *) malloc((features[x].ngeom + features[out - 1].ngeom) * sizeof(struct draw)); memcpy(tmp, features[out - 1].geom, features[out - 1].ngeom * sizeof(struct draw)); memcpy(tmp + features[out - 1].ngeom, features[x].geom, features[x].ngeom * sizeof(struct draw));