# HG changeset patch # User Sascha L. Teichmann # Date 1307560278 0 # Node ID e0e39a0eb3fe937f3d0ef6657f19c8dc0f474094 # Parent 8124ca1ecaaa7fcda46535e44406867d06c481b9 Berechnung 4: Determine the gauges by their station position. This hopefully fixes segment assignment problems. flys-artifacts/trunk@2091 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 8124ca1ecaaa -r e0e39a0eb3fe flys-artifacts/ChangeLog --- a/flys-artifacts/ChangeLog Wed Jun 08 18:50:40 2011 +0000 +++ b/flys-artifacts/ChangeLog Wed Jun 08 19:11:18 2011 +0000 @@ -1,3 +1,9 @@ +2011-06-08 Sascha L. Teichmann + + * src/main/java/de/intevation/flys/artifacts/model/Calculation4.java: + Determine the gauges by their station positions. This hopfully + fixes the problem with wrong assigned gauges and invalid segments. + 2011-06-08 Sascha L. Teichmann * src/main/java/de/intevation/flys/artifacts/model/Segment.java, diff -r 8124ca1ecaaa -r e0e39a0eb3fe flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/Calculation4.java --- 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