diff artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedHeightSoundingWidthFacet.java @ 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 99912f51468d
children 6d8d7425a6b5
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