diff flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WstValueTable.java @ 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 523a256451cd
children 07640ab913fd
line wrap: on
line diff
--- 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