Mercurial > dive4elements > river
diff flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/Calculation4.java @ 671:e0e39a0eb3fe
Berechnung 4: Determine the gauges by their station position. This hopefully fixes segment assignment problems.
flys-artifacts/trunk@2091 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Wed, 08 Jun 2011 19:11:18 +0000 |
parents | 8124ca1ecaaa |
children | d5f9ba1d055f |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/Calculation4.java Wed Jun 08 18:50:40 2011 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/Calculation4.java Wed Jun 08 19:11:18 2011 +0000 @@ -50,7 +50,7 @@ // assign reference points for (Segment segment: segments) { - Gauge gauge = river.determineGauge( + Gauge gauge = river.determineGaugeByStation( segment.getFrom(), segment.getTo()); segment.setReferencePoint(gauge != null