Mercurial > dive4elements > river
comparison 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 |
comparison
equal
deleted
inserted
replaced
8426:4f6892d9dff5 | 8427:2f640972ecf6 |
---|---|
48 access.getTo()); | 48 access.getTo()); |
49 double[][] values = new double[2][bedheightValues.size()]; | 49 double[][] values = new double[2][bedheightValues.size()]; |
50 int i = 0; | 50 int i = 0; |
51 for (BedHeightSingleValue bedheightValue : bedheightValues) { | 51 for (BedHeightSingleValue bedheightValue : bedheightValues) { |
52 values[0][i] = bedheightValue.getStation(); | 52 values[0][i] = bedheightValue.getStation(); |
53 values[1][i] = bedheightValue.getSoundingWidth(); | 53 values[1][i] = bedheightValue.getSoundingWidth() != null |
54 ? bedheightValue.getSoundingWidth() : Double.NaN; | |
54 i++; | 55 i++; |
55 } | 56 } |
56 return values; | 57 return values; |
57 } | 58 } |
58 | 59 |