changeset 2596:00cf69edfcc0

#252 Added numeric value of a named main value into the WST export. flys-artifacts/trunk@4164 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 20 Mar 2012 05:56:16 +0000
parents b23c956c5aa2
children b61357384a7a
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/exports/WaterlevelExporter.java
diffstat 2 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Fri Mar 16 09:51:51 2012 +0000
+++ b/flys-artifacts/ChangeLog	Tue Mar 20 05:56:16 2012 +0000
@@ -1,3 +1,10 @@
+2012-03-20  Ingo Weinzierl <ingo@intevation.de>
+
+	flys/issue252 (W-INFO: Wasserspiegellagenberechnung / Mitführung der Jährlichkeiten in der Diagramm-/Ergbnisausgabe)
+
+	* src/main/java/de/intevation/flys/exports/WaterlevelExporter.java: Added
+	  the numeric value of a selected named main value to the WST column name.
+
 2012-03-16  Ingo Weinzierl <ingo@intevation.de>
 
 	* doc/conf/mapserver/db_layer.vm: Set the FILTER expression into double
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/WaterlevelExporter.java	Fri Mar 16 09:51:51 2012 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/WaterlevelExporter.java	Tue Mar 20 05:56:16 2012 +0000
@@ -195,7 +195,8 @@
                 String nmv = FLYSUtils.getNamedMainValue(winfo, v);
 
                 if (nmv != null && nmv.length() > 0) {
-                    nmv = FLYSUtils.stripNamedMainValue(nmv);
+                    nmv  = FLYSUtils.stripNamedMainValue(nmv);
+                    nmv += "=" + String.valueOf(v);
                     logger.debug("Set named main value '" + nmv + "'");
 
                     return nmv;

http://dive4elements.wald.intevation.org