changeset 6311:c4c7ed0e5ffc

Format km's in computed discharge export
author Andre Heinecke <aheinecke@intevation.de>
date Wed, 12 Jun 2013 17:46:22 +0200
parents 3ac657d60e60
children ac99cade71dd
files artifacts/src/main/java/org/dive4elements/river/exports/ComputedDischargeCurveExporter.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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(

http://dive4elements.wald.intevation.org