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
+6
View File
@@ -295,6 +295,12 @@ void handle(std::string message, int z, unsigned x, unsigned y, int describe) {
}
printf("[ %f, %f ]", rings[i][j].lon, rings[i][j].lat);
} else {
if (j != 0) {
printf(", ");
}
printf("[ %f, %f ]", rings[i][0].lon, rings[i][0].lat);
}
}