mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-06 02:15:41 +02:00
Add progress indicator for tile iteration too
This commit is contained in:
@@ -374,11 +374,23 @@ void check(struct index *ix, long long n, char *metabase, unsigned *file_bbox) {
|
|||||||
y2 = file_bbox[3] >> (32 - z);
|
y2 = file_bbox[3] >> (32 - z);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
long long total = (y2 - y1 + 1) * (x2 - x1 + 1);
|
||||||
|
long long seq = 0;
|
||||||
|
long long percent = -1;
|
||||||
|
|
||||||
|
fprintf(stderr, "\n");
|
||||||
|
|
||||||
unsigned x, y;
|
unsigned x, y;
|
||||||
for (y = y1; y <= y2; y++) {
|
for (y = y1; y <= y2; y++) {
|
||||||
for (x = x1; x <= x2; x++) {
|
for (x = x1; x <= x2; x++) {
|
||||||
int zz;
|
int zz;
|
||||||
|
|
||||||
|
seq++;
|
||||||
|
if (100 * seq / total > percent) {
|
||||||
|
percent = 100 * seq / total;
|
||||||
|
fprintf(stderr, "%lld%% (%lld / %lld)\r", percent, seq, total);
|
||||||
|
}
|
||||||
|
|
||||||
for (zz = 0; zz <= MAX_ZOOM; zz++) {
|
for (zz = 0; zz <= MAX_ZOOM; zz++) {
|
||||||
unsigned long long start, end;
|
unsigned long long start, end;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user