[Dive4elements-commits] [PATCH 1 of 2] issue1130: Show 'W am Pegel(cm)' values in waterlevelexport
Wald Commits
scm-commit at wald.intevation.org
Thu May 23 14:48:49 CEST 2013
# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1369310825 -7200
# Node ID 7022982a6ae51d0f9db92607c3ce2f4f68018770
# Parent f0417a8e4c398367a9648eaeac58b3142c5bdf03
issue1130: Show 'W am Pegel(cm)' values in waterlevelexport.
diff -r f0417a8e4c39 -r 7022982a6ae5 artifacts/src/main/java/org/dive4elements/river/exports/WaterlevelExporter.java
--- 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) {
More information about the Dive4elements-commits
mailing list