Don't add extra points at tile boundaries if not clipping

The extra points kept the features from being exactly the same
in each tile.
This commit is contained in:
Eric Fischer
2016-04-19 16:13:02 -07:00
parent 56d8178a7c
commit 41099ed731
5 changed files with 723 additions and 721 deletions
+2 -2
View File
@@ -510,7 +510,7 @@ void *partial_feature_worker(void *v) {
geom = remove_noop(geom, t, 32 - z - line_detail);
}
geom = simplify_lines(geom, z, line_detail);
geom = simplify_lines(geom, z, line_detail, !prevent[P_CLIPPING]);
}
}
@@ -965,7 +965,7 @@ long long write_tile(FILE *geoms, long long *geompos_in, char *metabase, char *s
for (size_t x = 0; x < features[j].size(); x++) {
if (features[j][x].coalesced && features[j][x].type == VT_LINE) {
features[j][x].geom = remove_noop(features[j][x].geom, features[j][x].type, 0);
features[j][x].geom = simplify_lines(features[j][x].geom, 32, 0);
features[j][x].geom = simplify_lines(features[j][x].geom, 32, 0, !prevent[P_CLIPPING]);
}
if (features[j][x].type == VT_POLYGON) {