[Dive4elements-commits] [PATCH 11 of 12] Format km's in computed discharge export

Wald Commits scm-commit at wald.intevation.org
Wed Jun 12 17:47:24 CEST 2013


# HG changeset patch
# User Andre Heinecke <aheinecke at intevation.de>
# Date 1371051982 -7200
# Node ID c4c7ed0e5ffc50703f4e8b7981e2945c20a6d5fd
# Parent  3ac657d60e60676415d8b84595ccb45e49dd0622
Format km's in computed discharge export

diff -r 3ac657d60e60 -r c4c7ed0e5ffc artifacts/src/main/java/org/dive4elements/river/exports/ComputedDischargeCurveExporter.java
--- a/artifacts/src/main/java/org/dive4elements/river/exports/ComputedDischargeCurveExporter.java	Wed Jun 12 17:45:56 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/ComputedDischargeCurveExporter.java	Wed Jun 12 17:46:22 2013 +0200
@@ -270,7 +270,8 @@
 
         RangeAccess rangeAccess = new RangeAccess(flys);
         double[] kms = rangeAccess.getKmRange();
-        source.addMetaData("range", String.valueOf(kms[0]));
+        source.addMetaData("range",
+                Formatter.getCalculationKm(context.getMeta()).format(kms[0]));
 
         if (isCalculated) {
             source.addMetaData("calculation", Resources.getMsg(


More information about the Dive4elements-commits mailing list