Skip to content

Commit

Permalink
Report distances in both feet and meters
Browse files Browse the repository at this point in the history
  • Loading branch information
e-n-f committed Feb 6, 2018
1 parent 8e7b22c commit 8fa5a5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1848,7 +1848,7 @@ int read_input(std::vector<source> &sources, char *fname, int maxzoom, int minzo
}

if (!quiet) {
fprintf(stderr, "Choosing a maxzoom of -z%d for features about %d feet apart\n", maxzoom, (int) ceil(dist_ft));
fprintf(stderr, "Choosing a maxzoom of -z%d for features about %d feet (%d meters) apart\n", maxzoom, (int) ceil(dist_ft), (int) ceil(dist_ft / 3.28084));
}
}

Expand All @@ -1865,7 +1865,7 @@ int read_input(std::vector<source> &sources, char *fname, int maxzoom, int minzo

if (mz > maxzoom || count <= 0) {
if (!quiet) {
fprintf(stderr, "Choosing a maxzoom of -z%d for resolution of about %d feet within features\n", mz, (int) exp(dist_sum / dist_count));
fprintf(stderr, "Choosing a maxzoom of -z%d for resolution of about %d feet (%d meters) within features\n", mz, (int) exp(dist_sum / dist_count), (int) (exp(dist_sum / dist_count) / 3.28084));
}
maxzoom = mz;
}
Expand Down

0 comments on commit 8fa5a5f

Please sign in to comment.