Accurate feature count, more chatty base zoom determination, less chatty tiling

This commit is contained in:
Eric Fischer
2016-01-11 13:11:21 -08:00
parent 20bd661693
commit ffbddef756
2 changed files with 17 additions and 3 deletions
+5 -3
View File
@@ -579,7 +579,11 @@ long long write_tile(char **geoms, char *metabase, char *stringpool, int z, unsi
}
}
for (line_detail = detail; line_detail >= min_detail || line_detail == detail; line_detail--) {
static volatile double oprogress = 0;
// This only loops if the tile data didn't fit, in which case the detail
// goes down and the progress indicator goes backward for the next try.
for (line_detail = detail; line_detail >= min_detail || line_detail == detail; line_detail--, oprogress = 0) {
GOOGLE_PROTOBUF_VERIFY_VERSION;
struct pool keys1[nlayers], values1[nlayers];
@@ -622,8 +626,6 @@ long long write_tile(char **geoms, char *metabase, char *stringpool, int z, unsi
memset(within, '\0', sizeof(within));
memset(geompos, '\0', sizeof(geompos));
double oprogress = 0;
*geoms = og;
while (1) {