comparison 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
comparison
equal deleted inserted replaced
620:a495464f5527 621:4e0ca3890696
368 tw = weight(qWeight, ws[qIdx-1], ws[qIdx]); 368 tw = weight(qWeight, ws[qIdx-1], ws[qIdx]);
369 oq = weight(qWeight, other.qs[qIdx-1], other.qs[qIdx]); 369 oq = weight(qWeight, other.qs[qIdx-1], other.qs[qIdx]);
370 ow = weight(qWeight, other.ws[qIdx-1], other.ws[qIdx]); 370 ow = weight(qWeight, other.ws[qIdx-1], other.ws[qIdx]);
371 } 371 }
372 372
373 oqs[index] = weight(kmWeight, oq, tq); 373 oqs[index] = weight(kmWeight, tq, oq);
374 ows[index] = weight(kmWeight, ow, tw); 374 ows[index] = weight(kmWeight, tw, ow);
375 } 375 }
376 376
377 public void storeWQ( 377 public void storeWQ(
378 QPosition qPosition, 378 QPosition qPosition,
379 LinearRemap remap, 379 LinearRemap remap,
422 } 422 }
423 423
424 tw = interpolateW(tq); 424 tw = interpolateW(tq);
425 ow = other.interpolateW(oq); 425 ow = other.interpolateW(oq);
426 426
427 oqs[index] = weight(kmWeight, oq, tq); 427 oqs[index] = weight(kmWeight, tq, oq);
428 ows[index] = weight(kmWeight, ow, tw); 428 ows[index] = weight(kmWeight, tw, ow);
429 } 429 }
430 } 430 }
431 // class Row 431 // class Row
432 432
433 protected List<Row> rows; 433 protected List<Row> rows;

http://dive4elements.wald.intevation.org