changeset 2664:3c4ec3b50af7

Fix area creation. flys-artifacts/trunk@4341 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Thu, 03 May 2012 09:41:08 +0000
parents 33d61e2a49a2
children bcf4011fa3f1
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	Thu May 03 08:56:19 2012 +0000
+++ b/flys-artifacts/ChangeLog	Thu May 03 09:41:08 2012 +0000
@@ -1,3 +1,8 @@
+2012-05-03	Felix Wolfsteller	<felix.wolfsteller@intevation.de>
+
+	* src/main/java/de/intevation/flys/exports/LongitudinalSectionGenerator.java
+	  (doArea): Add Lines.LineData datatype to areable data types.
+
 2012-05-03	Felix Wolfsteller	<felix.wolfsteller@intevation.de>
 
 	* doc/conf/themes.xml: Add two new options for waterlevel label in cs.
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/LongitudinalSectionGenerator.java	Thu May 03 08:56:19 2012 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/LongitudinalSectionGenerator.java	Thu May 03 09:41:08 2012 +0000
@@ -28,6 +28,8 @@
 import de.intevation.flys.utils.FLYSUtils;
 import de.intevation.flys.utils.DataUtil;
 
+import de.intevation.flys.geom.Lines;
+
 
 /**
  * An OutGenerator that generates longitudinal section curves.
@@ -597,6 +599,9 @@
             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);
+            }
             else {
                 logger.error("Do not know how to deal with (up) area info from: "
                     + data.getUpperData());
@@ -623,6 +628,9 @@
             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);
+            }
             else {
                 logger.error("Do not know how to deal with (down) area info from: "
                     + data.getLowerData());

http://dive4elements.wald.intevation.org