[Dive4elements-commits] [PATCH] Add unit to location and translate outliertest method

Wald Commits scm-commit at wald.intevation.org
Mon Jun 3 17:47:03 CEST 2013


# HG changeset patch
# User Andre Heinecke <aheinecke at intevation.de>
# Date 1370274419 -7200
# Node ID 6a04081a2f69d994c103d4fccb5c85e9c60282b4
# Parent  ab1706a682a7e6343b1d2c3cfbf5efef83129f7c
Add unit to location and translate outliertest method

diff -r ab1706a682a7 -r 6a04081a2f69 artifacts/src/main/java/org/dive4elements/river/exports/sq/SQRelationExporter.java
--- a/artifacts/src/main/java/org/dive4elements/river/exports/sq/SQRelationExporter.java	Mon Jun 03 17:32:10 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/sq/SQRelationExporter.java	Mon Jun 03 17:46:59 2013 +0200
@@ -219,13 +219,15 @@
         source.addMetaData("date", df.format(new Date()));
 
         SQRelationAccess access = new SQRelationAccess(arti);
-        source.addMetaData("location", getKmFormatter().format(access.getLocation()));
+        source.addMetaData("location", "KM " + getKmFormatter().format(access.getLocation()));
 
         DateRange period = access.getPeriod();
         source.addMetaData("periods", df.format(period.getFrom()) + " - " +
             df.format(period.getTo()));
 
-        source.addMetaData("outliertest", access.getOutlierMethod());
+        source.addMetaData("outliertest", Resources.getMsg(meta,
+                    access.getOutlierMethod(),
+                    access.getOutlierMethod()));
         source.addMetaData("outliers", access.getOutliers().toString());
 
         source.addMetaData("calculation", Resources.getMsg(


More information about the Dive4elements-commits mailing list