# HG changeset patch # User Felix Wolfsteller # Date 1336720136 0 # Node ID 5652a851f1b4601bfdbbd447c0809b59099e1c5a # Parent 14188f8daefbf67fecc966514828c9e6e41f52ef Fix water-through-mountain in cross sections. flys-artifacts/trunk@4386 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 14188f8daefb -r 5652a851f1b4 flys-artifacts/ChangeLog --- a/flys-artifacts/ChangeLog Thu May 10 11:56:40 2012 +0000 +++ b/flys-artifacts/ChangeLog Fri May 11 07:08:56 2012 +0000 @@ -1,3 +1,16 @@ +2012-05-11 Felix Wolfsteller + + Tackle water-through-mountain issue that exists since r4099. + + * src/main/java/de/intevation/flys/exports/StyledSeriesBuilder.java + (addPoints): Add parameter that decides whether or not to skip NaNs. + + * src/main/java/de/intevation/flys/exports/LongitudinalSectionGenerator.java, + src/main/java/de/intevation/flys/exports/CrossSectionGenerator.java, + src/main/java/de/intevation/flys/exports/ComputedDischargeCurveGenerator.java: + Set new parameter to StyledSeriesBuilder.addPoints calls. + For waterlines it is important that NaNs stay included! + 2012-05-10 Ingo Weinzierl * src/main/java/de/intevation/flys/artifacts/WMSGaugeLocationArtifact.java: diff -r 14188f8daefb -r 5652a851f1b4 flys-artifacts/src/main/java/de/intevation/flys/exports/ComputedDischargeCurveGenerator.java --- a/flys-artifacts/src/main/java/de/intevation/flys/exports/ComputedDischargeCurveGenerator.java Thu May 10 11:56:40 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/ComputedDischargeCurveGenerator.java Fri May 11 07:08:56 2012 +0000 @@ -161,7 +161,7 @@ double [][] data = (double [][]) wqkms; XYSeries series = new StyledXYSeries(aaf.getFacetDescription(), theme); - StyledSeriesBuilder.addPoints(series, data); + StyledSeriesBuilder.addPoints(series, data, true); addAxisSeries(series, YAXIS.W.idx, visible); } diff -r 14188f8daefb -r 5652a851f1b4 flys-artifacts/src/main/java/de/intevation/flys/exports/CrossSectionGenerator.java --- a/flys-artifacts/src/main/java/de/intevation/flys/exports/CrossSectionGenerator.java Thu May 10 11:56:40 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/CrossSectionGenerator.java Fri May 11 07:08:56 2012 +0000 @@ -243,7 +243,7 @@ // TODO Missing: "mittlere hoehe" (and area but this geos to // the area theme). - StyledSeriesBuilder.addPoints(series, lines.points); + StyledSeriesBuilder.addPoints(series, lines.points, false); addAxisSeries(series, 0, visible); } @@ -285,7 +285,7 @@ XYSeries series = new StyledXYSeries(seriesName, theme); - StyledSeriesBuilder.addPoints(series, (double [][]) o); + StyledSeriesBuilder.addPoints(series, (double [][]) o, false); addAxisSeries(series, 0, visible); } diff -r 14188f8daefb -r 5652a851f1b4 flys-artifacts/src/main/java/de/intevation/flys/exports/LongitudinalSectionGenerator.java --- a/flys-artifacts/src/main/java/de/intevation/flys/exports/LongitudinalSectionGenerator.java Thu May 10 11:56:40 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/LongitudinalSectionGenerator.java Fri May 11 07:08:56 2012 +0000 @@ -594,13 +594,13 @@ } } else if (data.getUpperData() instanceof double[][]) { - StyledSeriesBuilder.addPoints(up, (double [][]) data.getUpperData()); + StyledSeriesBuilder.addPoints(up, (double [][]) data.getUpperData(), false); } else if (data.getUpperData() instanceof WKms) { StyledSeriesBuilder.addPoints(up, (WKms) data.getUpperData()); } else if (data.getUpperData() instanceof Lines.LineData) { - StyledSeriesBuilder.addPoints(up, ((Lines.LineData) data.getUpperData()).points); + StyledSeriesBuilder.addPoints(up, ((Lines.LineData) data.getUpperData()).points, false); } else { logger.error("Do not know how to deal with (up) area info from: " @@ -623,13 +623,13 @@ } } else if (data.getLowerData() instanceof double[][]) { - StyledSeriesBuilder.addPoints(down, (double[][]) data.getLowerData()); + StyledSeriesBuilder.addPoints(down, (double[][]) data.getLowerData(), false); } else if (data.getLowerData() instanceof WKms) { StyledSeriesBuilder.addPoints(down, (WKms) data.getLowerData()); } else if (data.getLowerData() instanceof Lines.LineData) { - StyledSeriesBuilder.addPoints(down, ((Lines.LineData) data.getLowerData()).points); + StyledSeriesBuilder.addPoints(down, ((Lines.LineData) data.getLowerData()).points, false); } else { logger.error("Do not know how to deal with (down) area info from: "