[PATCH] There might be no sounding width given at some stations of a bed height single

Wald Commits scm-commit at wald.intevation.org
Fri Oct 17 17:06:07 CEST 2014


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1413558359 -7200
# Node ID 2f640972ecf6837ecd320b6561acefc645bb025a
# Parent  4f6892d9dff5e0ff8fd4eacb247f3c93091ac684
There might be no sounding width given at some stations of a bed height single.

diff -r 4f6892d9dff5 -r 2f640972ecf6 artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedHeightSoundingWidthFacet.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedHeightSoundingWidthFacet.java	Fri Oct 17 16:08:25 2014 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedHeightSoundingWidthFacet.java	Fri Oct 17 17:05:59 2014 +0200
@@ -50,7 +50,8 @@
         int i = 0;
         for (BedHeightSingleValue bedheightValue : bedheightValues) {
             values[0][i] = bedheightValue.getStation();
-            values[1][i] = bedheightValue.getSoundingWidth();
+            values[1][i] = bedheightValue.getSoundingWidth() != null
+                ? bedheightValue.getSoundingWidth() : Double.NaN;
             i++;
         }
         return values;


More information about the Dive4Elements-commits mailing list