Mercurial > dive4elements > river
changeset 7623:b64c263df4d1
issue1579: ComputedDischargeCurveGenerator: Handle WQKms data.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Mon, 02 Dec 2013 09:56:35 +0100 |
parents | c9b82ffbb7dc |
children | 3dd505477fcc |
files | artifacts/src/main/java/org/dive4elements/river/exports/ComputedDischargeCurveGenerator.java |
diffstat | 1 files changed, 7 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/ComputedDischargeCurveGenerator.java Mon Dec 02 09:55:14 2013 +0100 +++ b/artifacts/src/main/java/org/dive4elements/river/exports/ComputedDischargeCurveGenerator.java Mon Dec 02 09:56:35 2013 +0100 @@ -216,10 +216,14 @@ boolean visible ) { logger.debug("ComputedDischargeCurveGenerator: doWQOut"); - double [][] data = (double [][]) wq; - XYSeries series = new StyledXYSeries(aaf.getFacetDescription(), theme); - StyledSeriesBuilder.addPoints(series, data, true); + if (wq instanceof double[][]) { + double [][] data = (double [][]) wq; + StyledSeriesBuilder.addPoints(series, data, true); + } else if (wq instanceof WQKms) { + WQKms wqkms = (WQKms) wq; + StyledSeriesBuilder.addPointsQW(series, (WQKms) wq); + } addAxisSeries(series, YAXIS.W.idx, visible); }