From e0edbb17fbbb14082eea94f1b7a179d5a33fa775 Mon Sep 17 00:00:00 2001 From: Andrew Kirmse Date: Mon, 18 Mar 2024 14:12:39 -0700 Subject: [PATCH] Write 5 decimal places in lat/lngs. --- code/merge_divide_trees.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/merge_divide_trees.cpp b/code/merge_divide_trees.cpp index e7802a6..4743ab7 100644 --- a/code/merge_divide_trees.cpp +++ b/code/merge_divide_trees.cpp @@ -105,7 +105,7 @@ int main(int argc, char **argv) { case 'f': finalize = true; break; - + case 'm': minProminence = static_cast(atof(optarg)); break; @@ -235,7 +235,7 @@ int main(int argc, char **argv) { elevation = -elevation; } - fprintf(file, "%.4f,%.4f,%.2f,%.4f,%.4f,%.2f\n", + fprintf(file, "%.5f,%.5f,%.2f,%.5f,%.5f,%.2f\n", peakpos.latitude(), peakpos.longitude(), elevation * elevationScale, colpos.latitude(), colpos.longitude(), nodes[i].prominence * elevationScale);