changeset 6074:7022982a6ae5

issue1130: Show 'W am Pegel(cm)' values in waterlevelexport.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Thu, 23 May 2013 14:07:05 +0200
parents f0417a8e4c39
children b121b865907d
files artifacts/src/main/java/org/dive4elements/river/exports/WaterlevelExporter.java
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/WaterlevelExporter.java	Thu May 23 11:59:01 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/WaterlevelExporter.java	Thu May 23 14:07:05 2013 +0200
@@ -565,6 +565,10 @@
             if (wqkms != null && wqkms.getRawValue() != null) {
                 WINFOArtifact winfo = (WINFOArtifact) flys;
                 colDesc = RiverUtils.getNamedMainValue(winfo, wqkms.getRawValue());
+                // For 'W am Pegel' s
+                if (colDesc == null) {
+                    colDesc = ((D4EArtifact)master).getDataAsString("wq_single");
+                }
             }
         }
         else if (flys instanceof FixationArtifact) {

http://dive4elements.wald.intevation.org