Use closepath for each polygon ring to match the vector tile spec

This commit is contained in:
Eric Fischer
2015-10-28 14:34:57 -07:00
parent b07a40ed5a
commit 358e9cad5b
4 changed files with 38 additions and 1 deletions
+1
View File
@@ -656,6 +656,7 @@ long long write_tile(char **geoms, char *metabase, char *stringpool, int z, unsi
// Scaling may have made the polygon degenerate.
// Give Clipper a chance to try to fix it.
geom = clean_or_clip_poly(geom, 0, 0, 0, false);
geom = close_poly(geom);
}
if (t == VT_POINT || to_feature(geom, NULL)) {