Skip to content

Commit

Permalink
Write 5 decimal places in lat/lngs.
Browse files Browse the repository at this point in the history
  • Loading branch information
akirmse committed Mar 18, 2024
1 parent 4135cd9 commit e0edbb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/merge_divide_trees.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ int main(int argc, char **argv) {
case 'f':
finalize = true;
break;

case 'm':
minProminence = static_cast<Elevation>(atof(optarg));
break;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit e0edbb1

Please sign in to comment.