Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/flys/model/BedHeightEpoch.java @ 3799:b9a99fcc78c3
Fixed broken loops to find the bed height epochs and singles for a given river and km range.
flys-backend/trunk@5490 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Mon, 17 Sep 2012 10:09:42 +0000 |
parents | 444e52222941 |
children |
comparison
equal
deleted
inserted
replaced
3798:90f91ba077a8 | 3799:b9a99fcc78c3 |
---|---|
178 // TODO Do km range filtering in SQL statement | 178 // TODO Do km range filtering in SQL statement |
179 | 179 |
180 List<BedHeightEpoch> epochs = query.list(); | 180 List<BedHeightEpoch> epochs = query.list(); |
181 List<BedHeightEpoch> good = new ArrayList<BedHeightEpoch>(); | 181 List<BedHeightEpoch> good = new ArrayList<BedHeightEpoch>(); |
182 | 182 |
183 for (BedHeightEpoch e: epochs) { | 183 OUTER: for (BedHeightEpoch e: epochs) { |
184 OUTER: | |
185 for (BedHeightEpochValue value: e.getValues()) { | 184 for (BedHeightEpochValue value: e.getValues()) { |
186 double station = value.getStation().doubleValue(); | 185 double station = value.getStation().doubleValue(); |
187 | 186 |
188 if (station >= kmLo && station <= kmHi) { | 187 if (station >= kmLo && station <= kmHi) { |
189 good.add(e); | 188 good.add(e); |