From 8fa5a5ff877427be9ab54d37c835e820388ff503 Mon Sep 17 00:00:00 2001 From: Eric Fischer Date: Tue, 6 Feb 2018 12:15:24 -0800 Subject: [PATCH] Report distances in both feet and meters --- main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.cpp b/main.cpp index 50de5e1..b800415 100644 --- a/main.cpp +++ b/main.cpp @@ -1848,7 +1848,7 @@ int read_input(std::vector &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)); } } @@ -1865,7 +1865,7 @@ int read_input(std::vector &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; }