changeset 2567:1d1cf502a360

fix flys/issue638 (area between certain datatypes). flys-artifacts/trunk@4093 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Mon, 27 Feb 2012 10:49:20 +0000
parents 8bacd0ce3704
children 53e8bffbe06c
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/exports/LongitudinalSectionGenerator.java
diffstat 2 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Mon Feb 27 09:09:54 2012 +0000
+++ b/flys-artifacts/ChangeLog	Mon Feb 27 10:49:20 2012 +0000
@@ -1,3 +1,10 @@
+2012-02-27	Felix Wolfsteller	<felix.wolfsteller@intevation.de>
+
+	fix flys/issue638.
+	
+	* src/main/java/de/intevation/flys/exports/LongitudinalSectionGenerator.java
+	  (doArea): Ract to WKms as upper/lower area data again.
+
 2012-02-27	Felix Wolfsteller	<felix.wolfsteller@intevation.de>
 
 	Partial fix flys/issue637.
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/LongitudinalSectionGenerator.java	Mon Feb 27 09:09:54 2012 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/LongitudinalSectionGenerator.java	Mon Feb 27 10:49:20 2012 +0000
@@ -595,6 +595,9 @@
             else if (data.getUpperData() instanceof double[][]) {
                 StyledSeriesBuilder.addPoints(up, (double [][]) data.getUpperData());
             }
+            else if (data.getUpperData() instanceof WKms) {
+                StyledSeriesBuilder.addPoints(up, (WKms) data.getUpperData());
+            }
             else {
                 logger.error("Do not know how to deal with (up) area info from: "
                     + data.getUpperData());
@@ -618,6 +621,9 @@
             else if (data.getLowerData() instanceof double[][]) {
                 StyledSeriesBuilder.addPoints(down, (double[][]) data.getLowerData());
             }
+            else if (data.getLowerData() instanceof WKms) {
+                StyledSeriesBuilder.addPoints(down, (WKms) data.getLowerData());
+            }
             else {
                 logger.error("Do not know how to deal with (down) area info from: "
                     + data.getLowerData());

http://dive4elements.wald.intevation.org