Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedHeightSoundingWidthFacet.java @ 8721:1083cb887ffb
(issue1754) Do not filter BedHeightSoundings to range.
This is more symetric to WINFO Raw data and fixes the problematic
master artifact information loss from issue1754 as the information
from the master (range) is no longer required.
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Mon, 27 Apr 2015 17:35:28 +0200 |
parents | 7e9d015b0f22 |
children | a805211690f7 |
comparison
equal
deleted
inserted
replaced
8720:3d0ef0a66503 | 8721:1083cb887ffb |
---|---|
41 * @return List of {@link BedHeightValue}s */ | 41 * @return List of {@link BedHeightValue}s */ |
42 BedHeight single = BedHeight.getBedHeightById( | 42 BedHeight single = BedHeight.getBedHeightById( |
43 access.getHeightId()); | 43 access.getHeightId()); |
44 List<BedHeightValue> bedheightValues = | 44 List<BedHeightValue> bedheightValues = |
45 BedHeightValue.getBedHeightValues( | 45 BedHeightValue.getBedHeightValues( |
46 single, | 46 single); |
47 access.getFrom(true), | |
48 access.getTo(true)); | |
49 double[][] values = new double[2][bedheightValues.size()]; | 47 double[][] values = new double[2][bedheightValues.size()]; |
50 int i = 0; | 48 int i = 0; |
51 for (BedHeightValue bedheightValue : bedheightValues) { | 49 for (BedHeightValue bedheightValue : bedheightValues) { |
52 values[0][i] = bedheightValue.getStation(); | 50 values[0][i] = bedheightValue.getStation(); |
53 values[1][i] = bedheightValue.getSoundingWidth() != null | 51 values[1][i] = bedheightValue.getSoundingWidth() != null |