changeset 8427:2f640972ecf6

There might be no sounding width given at some stations of a bed height single.
author Tom Gottfried <tom@intevation.de>
date Fri, 17 Oct 2014 17:05:59 +0200
parents 4f6892d9dff5
children 322ac5d61777
files artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedHeightSoundingWidthFacet.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;

http://dive4elements.wald.intevation.org