changeset 621:4e0ca3890696

fix for flys/issue81: km weights were swapped flys-artifacts/trunk@1973 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Fri, 20 May 2011 10:41:46 +0000
parents a495464f5527
children 02ca2ff96dee
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WstValueTable.java
diffstat 2 files changed, 11 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Fri May 20 09:23:09 2011 +0000
+++ b/flys-artifacts/ChangeLog	Fri May 20 10:41:46 2011 +0000
@@ -1,3 +1,10 @@
+2011-05-20	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
+
+	flys/issue81
+
+	* src/main/java/de/intevation/flys/artifacts/model/WstValueTable.java:
+	  weights for kms were swapped. 
+
 2011-05-20  Ingo Weinzierl <ingo@intevation.de>
 
 	Tagged RELEASE 2.3.1
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WstValueTable.java	Fri May 20 09:23:09 2011 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WstValueTable.java	Fri May 20 10:41:46 2011 +0000
@@ -370,8 +370,8 @@
                 ow = weight(qWeight, other.ws[qIdx-1], other.ws[qIdx]); 
             }
 
-            oqs[index] = weight(kmWeight, oq, tq);
-            ows[index] = weight(kmWeight, ow, tw);
+            oqs[index] = weight(kmWeight, tq, oq);
+            ows[index] = weight(kmWeight, tw, ow);
         }
 
         public void storeWQ(
@@ -424,8 +424,8 @@
             tw = interpolateW(tq);
             ow = other.interpolateW(oq);
 
-            oqs[index] = weight(kmWeight, oq, tq);
-            ows[index] = weight(kmWeight, ow, tw);
+            oqs[index] = weight(kmWeight, tq, oq);
+            ows[index] = weight(kmWeight, tw, ow);
         }
     }
     // class Row

http://dive4elements.wald.intevation.org