comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java @ 377:0ccf7200fc51

Enabled the server to handle longitudinal section chart requests with inserted W data - Ws are transformed into Qs then. flys-artifacts/trunk@1789 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Mon, 02 May 2011 12:47:10 +0000
parents d79a51fc4f1d
children 5f55047a17e8
comparison
equal deleted inserted replaced
376:aa0889141b15 377:0ccf7200fc51
246 throw new NullPointerException("No Kms selected."); 246 throw new NullPointerException("No Kms selected.");
247 } 247 }
248 248
249 double[] qs = getQs(); 249 double[] qs = getQs();
250 if (qs == null) { 250 if (qs == null) {
251 // TODO Use DischargeTableValue.getQForW() to compute the Qs. 251 logger.debug("Determine Q values based on a set of W values.");
252
253 double[] ws = getWs();
254 qs = getQsForWs(ws);
252 } 255 }
253 256
254 WstValueTable wst = WstValueTable.getTable(river); 257 WstValueTable wst = WstValueTable.getTable(river);
255 if (wst == null) { 258 if (wst == null) {
256 throw new NullPointerException("No Wst found for selected river."); 259 throw new NullPointerException("No Wst found for selected river.");

http://dive4elements.wald.intevation.org