changeset 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 bc1e4878d7e3
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/Calculation4.java
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 <sascha.teichmann@intevation.de>
+
+	* 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 <sascha.teichmann@intevation.de>
 
 	* src/main/java/de/intevation/flys/artifacts/model/Segment.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

http://dive4elements.wald.intevation.org